summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2016-03-07 14:25:39 -0500
committerSpencer Jackson <spencer.jackson@mongodb.com>2016-03-07 17:14:38 -0500
commit459340ce813f7fb5c146a6666222b3c9b869bf72 (patch)
tree952b4034c90344e3f55f3d5203e84aaf7de843e2
parent63d332ff3c37b738ea7cc7fe0b203f3cece875a0 (diff)
downloadmongo-459340ce813f7fb5c146a6666222b3c9b869bf72.tar.gz
SERVER-22986: Fix link when OpenSSL disables SSLv3
-rw-r--r--src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp b/src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp
index ed55ef1372c..2349353d079 100644
--- a/src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp
+++ b/src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp
@@ -84,6 +84,14 @@ context::context(context::method m)
handle_ = ::SSL_CTX_new(::SSLv2_server_method());
break;
#endif // defined(OPENSSL_NO_SSL2)
+#if defined(OPENSSL_NO_SSL3)
+ case context::sslv3:
+ case context::sslv3_client:
+ case context::sslv3_server:
+ asio::detail::throw_error(
+ asio::error::invalid_argument, "context");
+ break;
+#else // defined(OPENSSL_NO_SSL3)
case context::sslv3:
handle_ = ::SSL_CTX_new(::SSLv3_method());
break;
@@ -93,6 +101,7 @@ context::context(context::method m)
case context::sslv3_server:
handle_ = ::SSL_CTX_new(::SSLv3_server_method());
break;
+#endif // defined(OPENSSL_NO_SSL3)
case context::tlsv1:
handle_ = ::SSL_CTX_new(::TLSv1_method());
break;