From 63d21c53e55dc10edb9591b004cb1f558a9183e3 Mon Sep 17 00:00:00 2001 From: 0x1abin <0x1abin@gmail.com> Date: Mon, 6 Dec 2021 20:51:24 +0800 Subject: [PATCH] altcp mbedtls: Compile error fix. --- src/apps/altcp_tls/altcp_tls_mbedtls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/altcp_tls/altcp_tls_mbedtls.c b/src/apps/altcp_tls/altcp_tls_mbedtls.c index 9956d167..e787ae28 100644 --- a/src/apps/altcp_tls/altcp_tls_mbedtls.c +++ b/src/apps/altcp_tls/altcp_tls_mbedtls.c @@ -89,6 +89,9 @@ #ifndef ALTCP_MBEDTLS_ENTROPY_LEN #define ALTCP_MBEDTLS_ENTROPY_LEN 0 #endif +#ifndef ALTCP_MBEDTLS_RNG_FN +#define ALTCP_MBEDTLS_RNG_FN mbedtls_entropy_func +#endif /* Variable prototype, the actual declaration is at the end of this file since it contains pointers to static functions declared here */ @@ -1042,7 +1045,7 @@ altcp_tls_free_config(struct altcp_tls_config *conf) if (conf->ca) { mbedtls_x509_crt_free(conf->ca); } - mbedtls_ssl_config_free(&conf->conf) + mbedtls_ssl_config_free(&conf->conf); altcp_mbedtls_free_config(conf); altcp_mbedtls_unref_entropy(); }