mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
WOLFSSL_KEEP_STORE_CERTS for wolfSSL_X509_free
This commit is contained in:
committed by
Go Hosohara
parent
59beba6338
commit
8a046b0bac
@ -14630,6 +14630,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD *md)
|
|||||||
|
|
||||||
/* user externally called free X509, if dynamic go ahead with free, otherwise
|
/* user externally called free X509, if dynamic go ahead with free, otherwise
|
||||||
* don't */
|
* don't */
|
||||||
|
#ifndef WOLFSSL_X509_STORE_CERTS
|
||||||
static void ExternalFreeX509(WOLFSSL_X509* x509)
|
static void ExternalFreeX509(WOLFSSL_X509* x509)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("ExternalFreeX509");
|
WOLFSSL_ENTER("ExternalFreeX509");
|
||||||
@ -14642,12 +14643,17 @@ static void ExternalFreeX509(WOLFSSL_X509* x509)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Frees an external WOLFSSL_X509 structure */
|
/* Frees an external WOLFSSL_X509 structure */
|
||||||
void wolfSSL_X509_free(WOLFSSL_X509* x509)
|
void wolfSSL_X509_free(WOLFSSL_X509* x509)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("wolfSSL_FreeX509");
|
WOLFSSL_ENTER("wolfSSL_FreeX509");
|
||||||
|
#ifndef WOLFSSL_X509_STORE_CERTS
|
||||||
ExternalFreeX509(x509);
|
ExternalFreeX509(x509);
|
||||||
|
#else
|
||||||
|
(void) x509;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user