diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2016-03-07 14:25:39 -0500 |
---|---|---|
committer | Ramon Fernandez <ramon@mongodb.com> | 2016-03-15 15:29:35 -0400 |
commit | e93c4ce3748e86cc4fa304d5c6cc278aa9df3bb8 (patch) | |
tree | a6de431f9ff336d2f8fa97d1f0ee07bd9b5b2d97 /src/third_party | |
parent | 4281ac58fd4272c6e2f86b51ab9912d4029655e8 (diff) | |
download | mongo-e93c4ce3748e86cc4fa304d5c6cc278aa9df3bb8.tar.gz |
SERVER-22986: Fix link when OpenSSL disables SSLv3
(cherry picked from commit 459340ce813f7fb5c146a6666222b3c9b869bf72)
Diffstat (limited to 'src/third_party')
-rw-r--r-- | src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp | 9 |
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; |