mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
wolfSSL ABI
Add ABI tags to the functions wolfSSL_Cleanup() to match wolfSSL_Init(), wolfSSL_X509_free to match wolfSSL_load_certificate_file() which allocates memory.
This commit is contained in:
@@ -11760,6 +11760,7 @@ int wolfSSL_SetHsDoneCb(WOLFSSL* ssl, HandShakeDoneCb cb, void* user_ctx)
|
|||||||
|
|
||||||
#endif /* NO_HANDSHAKE_DONE_CB */
|
#endif /* NO_HANDSHAKE_DONE_CB */
|
||||||
|
|
||||||
|
WOLFSSL_ABI
|
||||||
int wolfSSL_Cleanup(void)
|
int wolfSSL_Cleanup(void)
|
||||||
{
|
{
|
||||||
int ret = WOLFSSL_SUCCESS;
|
int ret = WOLFSSL_SUCCESS;
|
||||||
@@ -17685,6 +17686,7 @@ static void ExternalFreeX509(WOLFSSL_X509* x509)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Frees an external WOLFSSL_X509 structure */
|
/* Frees an external WOLFSSL_X509 structure */
|
||||||
|
WOLFSSL_ABI
|
||||||
void wolfSSL_X509_free(WOLFSSL_X509* x509)
|
void wolfSSL_X509_free(WOLFSSL_X509* x509)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("wolfSSL_FreeX509");
|
WOLFSSL_ENTER("wolfSSL_FreeX509");
|
||||||
|
@@ -1968,7 +1968,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfSSL_check_domain_name(WOLFSSL*, const char*);
|
|||||||
/* need to call once to load library (session cache) */
|
/* need to call once to load library (session cache) */
|
||||||
WOLFSSL_ABI WOLFSSL_API int wolfSSL_Init(void);
|
WOLFSSL_ABI WOLFSSL_API int wolfSSL_Init(void);
|
||||||
/* call when done to cleanup/free session cache mutex / resources */
|
/* call when done to cleanup/free session cache mutex / resources */
|
||||||
WOLFSSL_API int wolfSSL_Cleanup(void);
|
WOLFSSL_ABI WOLFSSL_API int wolfSSL_Cleanup(void);
|
||||||
|
|
||||||
/* which library version do we have */
|
/* which library version do we have */
|
||||||
WOLFSSL_API const char* wolfSSL_lib_version(void);
|
WOLFSSL_API const char* wolfSSL_lib_version(void);
|
||||||
@@ -2002,7 +2002,7 @@ WOLFSSL_API unsigned char* wolfSSL_get_chain_cert(WOLFSSL_X509_CHAIN*, int idx);
|
|||||||
WOLFSSL_API WOLFSSL_X509* wolfSSL_get_chain_X509(WOLFSSL_X509_CHAIN*, int idx);
|
WOLFSSL_API WOLFSSL_X509* wolfSSL_get_chain_X509(WOLFSSL_X509_CHAIN*, int idx);
|
||||||
/* free X509 */
|
/* free X509 */
|
||||||
#define wolfSSL_FreeX509(x509) wolfSSL_X509_free((x509))
|
#define wolfSSL_FreeX509(x509) wolfSSL_X509_free((x509))
|
||||||
WOLFSSL_API void wolfSSL_X509_free(WOLFSSL_X509*);
|
WOLFSSL_ABI WOLFSSL_API void wolfSSL_X509_free(WOLFSSL_X509*);
|
||||||
/* get index cert in PEM */
|
/* get index cert in PEM */
|
||||||
WOLFSSL_API int wolfSSL_get_chain_cert_pem(WOLFSSL_X509_CHAIN*, int idx,
|
WOLFSSL_API int wolfSSL_get_chain_cert_pem(WOLFSSL_X509_CHAIN*, int idx,
|
||||||
unsigned char* buf, int inLen, int* outLen);
|
unsigned char* buf, int inLen, int* outLen);
|
||||||
|
Reference in New Issue
Block a user