From 20f5c44de56e04e0e5c924c1f71cac329f8a5f0e Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Wed, 31 Aug 2011 10:26:01 +0200 Subject: [PATCH] Use SSLv23_server_method to support more SSL methods in server code --- include/Swiften/TLS/OpenSSL/OpenSSLServerContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Swiften/TLS/OpenSSL/OpenSSLServerContext.cpp b/include/Swiften/TLS/OpenSSL/OpenSSLServerContext.cpp index da58b0b8..05a58c5d 100644 --- a/include/Swiften/TLS/OpenSSL/OpenSSLServerContext.cpp +++ b/include/Swiften/TLS/OpenSSL/OpenSSLServerContext.cpp @@ -36,7 +36,7 @@ static int _sx_ssl_verify_callback(int preverify_ok, X509_STORE_CTX *ctx) { OpenSSLServerContext::OpenSSLServerContext() : state_(Start), context_(0), handle_(0), readBIO_(0), writeBIO_(0) { ensureLibraryInitialized(); - context_ = SSL_CTX_new(TLSv1_server_method()); + context_ = SSL_CTX_new(SSLv23_server_method()); SSL_CTX_set_verify(context_, SSL_VERIFY_PEER, _sx_ssl_verify_callback); // Load system certs