add SSL_CTX_clear_options

This commit is contained in:
Takashi Kojo
2017-05-26 10:09:31 +09:00
parent d967129581
commit 12a9f41755
3 changed files with 11 additions and 2 deletions

View File

@@ -11476,6 +11476,12 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
return opt; return opt;
} }
long wolfSSL_CTX_clear_options(WOLFSSL_CTX* ctx, long opt)
{
WOLFSSL_ENTER("SSL_CTX_clear_options");
ctx->mask &= ~opt;
return opt;
}
int wolfSSL_set_rfd(WOLFSSL* ssl, int rfd) int wolfSSL_set_rfd(WOLFSSL* ssl, int rfd)
{ {

View File

@@ -412,8 +412,10 @@ typedef WOLFSSL_X509_STORE_CTX X509_STORE_CTX;
#define RAND_status wolfSSL_RAND_status #define RAND_status wolfSSL_RAND_status
#define RAND_bytes wolfSSL_RAND_bytes #define RAND_bytes wolfSSL_RAND_bytes
#define SSLv23_server_method wolfSSLv23_server_method #define SSLv23_server_method wolfSSLv23_server_method
#define SSL_CTX_set_options wolfSSL_CTX_set_options #define SSL_CTX_set_options wolfSSL_CTX_set_options
#define SSL_CTX_clear_options wolfSSL_CTX_clear_options
#define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key #define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key
#define ERR_free_strings wolfSSL_ERR_free_strings #define ERR_free_strings wolfSSL_ERR_free_strings

View File

@@ -1238,6 +1238,7 @@ WOLFSSL_API int wolfSSL_RAND_status(void);
WOLFSSL_API int wolfSSL_RAND_bytes(unsigned char* buf, int num); WOLFSSL_API int wolfSSL_RAND_bytes(unsigned char* buf, int num);
WOLFSSL_API WOLFSSL_METHOD *wolfSSLv23_server_method(void); WOLFSSL_API WOLFSSL_METHOD *wolfSSLv23_server_method(void);
WOLFSSL_API long wolfSSL_CTX_set_options(WOLFSSL_CTX*, long); WOLFSSL_API long wolfSSL_CTX_set_options(WOLFSSL_CTX*, long);
WOLFSSL_API long wolfSSL_CTX_clear_options(WOLFSSL_CTX*, long);
#ifndef NO_CERTS #ifndef NO_CERTS
WOLFSSL_API int wolfSSL_CTX_check_private_key(WOLFSSL_CTX*); WOLFSSL_API int wolfSSL_CTX_check_private_key(WOLFSSL_CTX*);
#endif /* !NO_CERTS */ #endif /* !NO_CERTS */