mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
allows one to set the cyassl ex_data to null
This commit is contained in:
@@ -1069,7 +1069,7 @@ struct CYASSL {
|
|||||||
CYASSL_X509 peerCert; /* X509 peer cert */
|
CYASSL_X509 peerCert; /* X509 peer cert */
|
||||||
#endif
|
#endif
|
||||||
#ifdef FORTRESS
|
#ifdef FORTRESS
|
||||||
void* ex_data[MAX_EX_DATA];
|
void* ex_data[MAX_EX_DATA]; /* external data, for Fortress */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -120,7 +120,7 @@ typedef struct CYASSL_X509_STORE_CTX {
|
|||||||
int error_depth;
|
int error_depth;
|
||||||
CYASSL_X509* current_cert; /* stunnel dereference */
|
CYASSL_X509* current_cert; /* stunnel dereference */
|
||||||
char* domain; /* subject CN domain name */
|
char* domain; /* subject CN domain name */
|
||||||
void* ex_data; /* For fortress build */
|
void* ex_data; /* external data, for fortress build */
|
||||||
/* in internal.h too, change there !! */
|
/* in internal.h too, change there !! */
|
||||||
} CYASSL_X509_STORE_CTX;
|
} CYASSL_X509_STORE_CTX;
|
||||||
|
|
||||||
|
@@ -3713,17 +3713,17 @@ int CyaSSL_set_compression(CYASSL* ssl)
|
|||||||
int CyaSSL_set_ex_data(CYASSL* ssl, int idx, void* data)
|
int CyaSSL_set_ex_data(CYASSL* ssl, int idx, void* data)
|
||||||
{
|
{
|
||||||
#ifdef FORTRESS
|
#ifdef FORTRESS
|
||||||
if (ssl != NULL && idx < MAX_EX_DATA && data != NULL)
|
if (ssl != NULL && idx < MAX_EX_DATA)
|
||||||
{
|
{
|
||||||
ssl->ex_data[idx] = data;
|
ssl->ex_data[idx] = data;
|
||||||
return 1;
|
return SSL_SUCCESS;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
(void)ssl;
|
(void)ssl;
|
||||||
(void)idx;
|
(void)idx;
|
||||||
(void)data;
|
(void)data;
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return SSL_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user