Merge pull request #215 from tejr/master
authorAlexander Barton <alex@barton.de>
Fri, 26 Jun 2015 05:41:19 +0000 (07:41 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 26 Jun 2015 05:41:19 +0000 (07:41 +0200)
Specify session context for OpenSSL clients.

Closes #182.

src/ngircd/conn-ssl.c

index c9bbdd2497ee3f7f9742415ab5888fad4b1c7186..be6ee0a8f9490be9dd5a15976d483ab0d9a850d0 100644 (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,