diff options
author | Adam <Adam@anope.org> | 2014-01-24 18:11:49 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-01-24 18:11:49 -0500 |
commit | 46eaac3381e072b7c08b96996d977177bbe41452 (patch) | |
tree | a42364dae7abb6e2c81c329103a1534a32f9fd45 | |
parent | 7dd831383f7506e49f568d0684ee1ecb1f5dc90f (diff) |
Set a session id on our server ssl context in m_ssl_openssl. It is required for some clients which try to restore SSL sessions.
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 7b7de023c..ad5eee791 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -132,6 +132,9 @@ class ModuleSSLOpenSSL : public Module SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, OnVerify); SSL_CTX_set_verify(clictx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, OnVerify); + + const unsigned char session_id[] = "inspircd"; + SSL_CTX_set_session_id_context(ctx, session_id, sizeof(session_id) - 1); } void init() |