summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-01-24 18:11:49 -0500
committerAdam <Adam@anope.org>2014-01-24 18:11:49 -0500
commit46eaac3381e072b7c08b96996d977177bbe41452 (patch)
treea42364dae7abb6e2c81c329103a1534a32f9fd45 /src/modules
parent7dd831383f7506e49f568d0684ee1ecb1f5dc90f (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.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp3
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()