nuttx-apps/crypto
cuiziwei 6721ae3555 fix build warning.
CC:  vfs/fs_lseek.c /home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c: In function ‘HMAC_CTX_new’:
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:57:31: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
   57 |       (mbedtls_md_context_t *)malloc(sizeof(mbedtls_md_context_t));
      |                               ^~~~~~
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:28:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
   27 | #include <mbedtls/hmac_drbg.h>
  +++ |+#include <stdlib.h>
   28 | #include <mbedtls/md.h>
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:57:31: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch]
   57 |       (mbedtls_md_context_t *)malloc(sizeof(mbedtls_md_context_t));
      |                               ^~~~~~
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:57:31: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c: In function ‘HMAC_CTX_free’:
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
  126 |   free(ctx);
      |   ^~~~
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
/home/cuiziwei/vela/happy/apps/crypto/openssl_mbedtls_wrapper/mbedtls/hmac.c:126:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-27 20:57:11 +08:00
..
controlse controlse: add accesslib for the se05x secure element 2024-04-21 11:20:12 +08:00
libsodium crypto/libsodium: fix libsodium compilation warning 2024-09-29 22:57:49 +02:00
libtomcrypt fix cmake code smell issues 2023-09-04 23:19:26 +08:00
mbedtls apps/mbedtls: add compilation configuration 2024-10-17 08:54:55 +08:00
openssl_mbedtls_wrapper fix build warning. 2024-10-27 20:57:11 +08:00
tinycrypt cmake:export tinycrypt headers 2024-09-13 23:16:26 +08:00
tinydtls crypto: add Eclipse tinydtls support 2023-07-27 09:33:10 -07:00
wolfssl remove crypto/xxx/README.md. Migrated to Documentation/applications/crypto 2023-10-30 10:00:01 +08:00
.gitignore Add support for libtomcrypt 2021-07-12 17:49:26 -03:00
CMakeLists.txt cmake:migrate apps CMakeLists for mbedtls 2023-08-03 05:53:05 -07:00
Make.defs Add support for libtomcrypt 2021-07-12 17:49:26 -03:00
Makefile Add support for libtomcrypt 2021-07-12 17:49:26 -03:00