mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
mbedtls: compile warning fix
- apps/crypto/openssl_mbedtls_wrapper/mbedtls/err.c - apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
597c701518
commit
84292d5013
2 changed files with 6 additions and 6 deletions
|
|
@ -31,7 +31,7 @@
|
|||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
unsigned long ERR_peek_last_error()
|
||||
unsigned long ERR_peek_last_error(void)
|
||||
{
|
||||
return errno;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,35 +132,35 @@ size_t EVP_MD_size(const EVP_MD *md)
|
|||
return mbedtls_md_get_size((const mbedtls_md_info_t *)md);
|
||||
}
|
||||
|
||||
const EVP_MD *EVP_sha1()
|
||||
const EVP_MD *EVP_sha1(void)
|
||||
{
|
||||
const mbedtls_md_info_t *md_info =
|
||||
mbedtls_md_info_from_type(MBEDTLS_MD_SHA1);
|
||||
return (const EVP_MD *)md_info;
|
||||
}
|
||||
|
||||
const EVP_MD *EVP_sha224()
|
||||
const EVP_MD *EVP_sha224(void)
|
||||
{
|
||||
const mbedtls_md_info_t *md_info =
|
||||
mbedtls_md_info_from_type(MBEDTLS_MD_SHA224);
|
||||
return (const EVP_MD *)md_info;
|
||||
}
|
||||
|
||||
const EVP_MD *EVP_sha256()
|
||||
const EVP_MD *EVP_sha256(void)
|
||||
{
|
||||
const mbedtls_md_info_t *md_info =
|
||||
mbedtls_md_info_from_type(MBEDTLS_MD_SHA256);
|
||||
return (const EVP_MD *)md_info;
|
||||
}
|
||||
|
||||
const EVP_MD *EVP_sha384()
|
||||
const EVP_MD *EVP_sha384(void)
|
||||
{
|
||||
const mbedtls_md_info_t *md_info =
|
||||
mbedtls_md_info_from_type(MBEDTLS_MD_SHA384);
|
||||
return (const EVP_MD *)md_info;
|
||||
}
|
||||
|
||||
const EVP_MD *EVP_sha512()
|
||||
const EVP_MD *EVP_sha512(void)
|
||||
{
|
||||
const mbedtls_md_info_t *md_info =
|
||||
mbedtls_md_info_from_type(MBEDTLS_MD_SHA512);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue