Skip to content

Commit 42e0e4c

Browse files
ThePassionatexiaoxiang781216
authored andcommitted
openssl_mbedtls_wrapper: support X509_new()
Signed-off-by: makejian <makejian@xiaomi.com>
1 parent 6721ae3 commit 42e0e4c

File tree

1 file changed

+6
-1
lines changed
  • crypto/openssl_mbedtls_wrapper/mbedtls

1 file changed

+6
-1
lines changed

crypto/openssl_mbedtls_wrapper/mbedtls/x509.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333

3434
void X509_free(X509 *a)
3535
{
36+
SSL_ASSERT3(a);
37+
38+
X509_METHOD_CALL(free, a);
39+
40+
ssl_mem_free(a);
3641
}
3742

3843
void X509_EXTENSION_free(X509_EXTENSION *a)
@@ -76,7 +81,7 @@ X509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex,
7681

7782
X509 *X509_new(void)
7883
{
79-
return NULL;
84+
return __X509_new(NULL);
8085
}
8186

8287
int X509_set_version(X509 *x509, long version)

0 commit comments

Comments
 (0)