sanity checks and one function return type for better compatibility
This commit is contained in:
parent
091fc10147
commit
95ea74a91e
10
src/ssl.c
10
src/ssl.c
@ -13376,6 +13376,10 @@ char* wolfSSL_CIPHER_description(WOLFSSL_CIPHER* cipher, char* in, int len)
|
||||
|
||||
WOLFSSL_SESSION* wolfSSL_get1_session(WOLFSSL* ssl)
|
||||
{
|
||||
if (ssl == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* sessions are stored statically, no need for reference count */
|
||||
return wolfSSL_get_session(ssl);
|
||||
}
|
||||
@ -14601,8 +14605,12 @@ WOLFSSL_API long wolfSSL_set_tlsext_status_ocsp_resp(WOLFSSL *s, unsigned char *
|
||||
}
|
||||
|
||||
|
||||
unsigned long wolfSSL_get_verify_result(const WOLFSSL *ssl)
|
||||
long wolfSSL_get_verify_result(const WOLFSSL *ssl)
|
||||
{
|
||||
if (ssl == NULL) {
|
||||
return SSL_FAILURE;
|
||||
}
|
||||
|
||||
return ssl->peerVerifyRet;
|
||||
}
|
||||
|
||||
|
@ -729,7 +729,7 @@ WOLFSSL_API long wolfSSL_set_tlsext_status_ocsp_resp(WOLFSSL *s, unsigned char *
|
||||
|
||||
WOLFSSL_API void wolfSSL_CONF_modules_unload(int all);
|
||||
WOLFSSL_API long wolfSSL_get_tlsext_status_exts(WOLFSSL *s, void *arg);
|
||||
WOLFSSL_API unsigned long wolfSSL_get_verify_result(const WOLFSSL *ssl);
|
||||
WOLFSSL_API long wolfSSL_get_verify_result(const WOLFSSL *ssl);
|
||||
|
||||
#define WOLFSSL_DEFAULT_CIPHER_LIST "" /* default all */
|
||||
#define WOLFSSL_RSA_F4 0x10001L
|
||||
|
Loading…
x
Reference in New Issue
Block a user