Skip to content

Commit 84292d5

Browse files
ThePassionatexiaoxiang781216
authored andcommitted
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>
1 parent 597c701 commit 84292d5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crypto/openssl_mbedtls_wrapper/mbedtls/err.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* Public Functions
3232
****************************************************************************/
3333

34-
unsigned long ERR_peek_last_error()
34+
unsigned long ERR_peek_last_error(void)
3535
{
3636
return errno;
3737
}

crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,35 +132,35 @@ size_t EVP_MD_size(const EVP_MD *md)
132132
return mbedtls_md_get_size((const mbedtls_md_info_t *)md);
133133
}
134134

135-
const EVP_MD *EVP_sha1()
135+
const EVP_MD *EVP_sha1(void)
136136
{
137137
const mbedtls_md_info_t *md_info =
138138
mbedtls_md_info_from_type(MBEDTLS_MD_SHA1);
139139
return (const EVP_MD *)md_info;
140140
}
141141

142-
const EVP_MD *EVP_sha224()
142+
const EVP_MD *EVP_sha224(void)
143143
{
144144
const mbedtls_md_info_t *md_info =
145145
mbedtls_md_info_from_type(MBEDTLS_MD_SHA224);
146146
return (const EVP_MD *)md_info;
147147
}
148148

149-
const EVP_MD *EVP_sha256()
149+
const EVP_MD *EVP_sha256(void)
150150
{
151151
const mbedtls_md_info_t *md_info =
152152
mbedtls_md_info_from_type(MBEDTLS_MD_SHA256);
153153
return (const EVP_MD *)md_info;
154154
}
155155

156-
const EVP_MD *EVP_sha384()
156+
const EVP_MD *EVP_sha384(void)
157157
{
158158
const mbedtls_md_info_t *md_info =
159159
mbedtls_md_info_from_type(MBEDTLS_MD_SHA384);
160160
return (const EVP_MD *)md_info;
161161
}
162162

163-
const EVP_MD *EVP_sha512()
163+
const EVP_MD *EVP_sha512(void)
164164
{
165165
const mbedtls_md_info_t *md_info =
166166
mbedtls_md_info_from_type(MBEDTLS_MD_SHA512);

0 commit comments

Comments
 (0)