This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 42e0e4c6b2174a09933c2683cadafb2bcdadb4b4 Author: makejian <makej...@xiaomi.com> AuthorDate: Fri Mar 15 10:24:29 2024 +0800 openssl_mbedtls_wrapper: support X509_new() Signed-off-by: makejian <makej...@xiaomi.com> --- crypto/openssl_mbedtls_wrapper/mbedtls/x509.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crypto/openssl_mbedtls_wrapper/mbedtls/x509.c b/crypto/openssl_mbedtls_wrapper/mbedtls/x509.c index ab0b17366..787c0af7c 100644 --- a/crypto/openssl_mbedtls_wrapper/mbedtls/x509.c +++ b/crypto/openssl_mbedtls_wrapper/mbedtls/x509.c @@ -33,6 +33,11 @@ void X509_free(X509 *a) { + SSL_ASSERT3(a); + + X509_METHOD_CALL(free, a); + + ssl_mem_free(a); } void X509_EXTENSION_free(X509_EXTENSION *a) @@ -76,7 +81,7 @@ X509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, X509 *X509_new(void) { - return NULL; + return __X509_new(NULL); } int X509_set_version(X509 *x509, long version)