From 46eaac3381e072b7c08b96996d977177bbe41452 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 24 Jan 2014 18:11:49 -0500 Subject: 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. --- src/modules/extra/m_ssl_openssl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/extra') 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() -- cgit v1.2.3