mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
add arg check
This commit is contained in:
@@ -17085,13 +17085,16 @@ long wolfSSL_set_options(WOLFSSL* ssl, long op)
|
||||
long wolfSSL_get_options(const WOLFSSL* ssl)
|
||||
{
|
||||
WOLFSSL_ENTER("wolfSSL_get_options");
|
||||
if(ssl == NULL)return WOLFSSL_FAILURE;
|
||||
if(ssl == NULL)
|
||||
return WOLFSSL_FAILURE;
|
||||
return ssl->options.mask;
|
||||
}
|
||||
|
||||
long wolfSSL_clear_options(WOLFSSL* ssl, long opt)
|
||||
{
|
||||
WOLFSSL_ENTER("SSL_clear_options");
|
||||
if(ssl == NULL)
|
||||
return WOLFSSL_FAILURE;
|
||||
ssl->options.mask &= ~opt;
|
||||
return ssl->options.mask;
|
||||
}
|
||||
|
Reference in New Issue
Block a user