Merge pull request #215 from tejr/master

Specify session context for OpenSSL clients.

Closes #182.
This commit is contained in:
Alexander Barton 2015-06-26 07:41:19 +02:00
commit 571b1a8b83
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ ConnSSL_InitLibrary( void )
goto out;
}
SSL_CTX_set_session_id_context(newctx, (unsigned char *)"ngircd", 6);
SSL_CTX_set_options(newctx, SSL_OP_SINGLE_DH_USE|SSL_OP_NO_SSLv2);
SSL_CTX_set_mode(newctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
SSL_CTX_set_verify(newctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE,