check value returned by SSL_CTX_new
This commit is contained in:
parent
30270bc8e8
commit
406ebacfe5
@ -1355,7 +1355,10 @@ prng_end:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* allocated by function */
|
/* allocated by function */
|
||||||
ctx = SSL_CTX_new(SSLv23_method());
|
if (!(ctx = SSL_CTX_new(SSLv23_method()))) {
|
||||||
|
ERR_print_errors(errbio);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_BOTH);
|
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_BOTH);
|
||||||
SSL_CTX_set_timeout(ctx, (long)60);
|
SSL_CTX_set_timeout(ctx, (long)60);
|
||||||
SSL_CTX_set_options(ctx, SSL_OP_ALL);
|
SSL_CTX_set_options(ctx, SSL_OP_ALL);
|
||||||
|
Loading…
Reference in New Issue
Block a user