mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-20 13:42:54 -05:00
lint fix and check errcode.
git-svn-id: file:///svn/unbound/trunk@4256 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
08a3461810
commit
962fea87d3
1 changed files with 6 additions and 1 deletions
|
|
@ -647,7 +647,12 @@ listen_sslctx_setup(void* ctxt)
|
|||
log_crypto_err("could not set cipher list with SSL_CTX_set_cipher_list");
|
||||
#endif
|
||||
|
||||
SSL_CTX_set_options(ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
|
||||
if((SSL_CTX_set_options(ctx, SSL_OP_CIPHER_SERVER_PREFERENCE) &
|
||||
SSL_OP_CIPHER_SERVER_PREFERENCE) !=
|
||||
SSL_OP_CIPHER_SERVER_PREFERENCE) {
|
||||
log_crypto_err("could not set SSL_OP_CIPHER_SERVER_PREFERENCE");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef HAVE_SSL_CTX_SET_SECURITY_LEVEL
|
||||
SSL_CTX_set_security_level(ctx, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue