diff options
| author | Alexander Barton <alex@barton.de> | 2015-06-26 07:41:19 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2015-06-26 07:41:19 +0200 |
| commit | 571b1a8b83bee56a75728d44d2586a816401d434 (patch) | |
| tree | 982381a311f0769e333deafc39fbcf93030742e8 | |
| parent | f6b7764eb5d85692c9242d2d20cb53f091083139 (diff) | |
| parent | b71a0ddbd570f5163ede198d635c3b03abd3e27e (diff) | |
| download | ngircd-571b1a8b83bee56a75728d44d2586a816401d434.tar.gz ngircd-571b1a8b83bee56a75728d44d2586a816401d434.zip | |
Merge pull request #215 from tejr/master
Specify session context for OpenSSL clients. Closes #182.
| -rw-r--r-- | src/ngircd/conn-ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ngircd/conn-ssl.c b/src/ngircd/conn-ssl.c index c9bbdd24..be6ee0a8 100644 --- a/src/ngircd/conn-ssl.c +++ b/src/ngircd/conn-ssl.c @@ -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, |