mongodb: fix build against libressl-2.3.

This commit is contained in:
Enno Boland 2016-03-31 13:36:26 +02:00
parent f9dbe973ca
commit 47ea740786
2 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,57 @@
--- ./src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp 2016-03-31 13:04:25.438868316 +0200
+++ ./src/third_party/asio-asio-1-11-0/asio/include/asio/ssl/impl/context.ipp.orig 2016-03-31 12:59:17.062891396 +0200
@@ -85,13 +85,13 @@ context::context(context::method m)
break;
#endif // defined(OPENSSL_NO_SSL2)
case context::sslv3:
- handle_ = ::SSL_CTX_new(::SSLv3_method());
+ handle_ = ::SSL_CTX_new(::SSLv23_method());
break;
case context::sslv3_client:
- handle_ = ::SSL_CTX_new(::SSLv3_client_method());
+ handle_ = ::SSL_CTX_new(::SSLv23_client_method());
break;
case context::sslv3_server:
- handle_ = ::SSL_CTX_new(::SSLv3_server_method());
+ handle_ = ::SSL_CTX_new(::SSLv23_server_method());
break;
case context::tlsv1:
handle_ = ::SSL_CTX_new(::TLSv1_method());
--- ./src/third_party/boost-1.56.0/boost/asio/ssl/old/detail/openssl_context_service.hpp 2016-03-31 13:04:25.439868316 +0200
+++ ./src/third_party/boost-1.56.0/boost/asio/ssl/old/detail/openssl_context_service.hpp.orig 2016-03-31 12:59:25.732890747 +0200
@@ -86,13 +86,13 @@ public:
break;
#endif // defined(OPENSSL_NO_SSL2)
case context_base::sslv3:
- impl = ::SSL_CTX_new(::SSLv3_method());
+ impl = ::SSL_CTX_new(::SSLv23_method());
break;
case context_base::sslv3_client:
- impl = ::SSL_CTX_new(::SSLv3_client_method());
+ impl = ::SSL_CTX_new(::SSLv23_client_method());
break;
case context_base::sslv3_server:
- impl = ::SSL_CTX_new(::SSLv3_server_method());
+ impl = ::SSL_CTX_new(::SSLv23_server_method());
break;
case context_base::tlsv1:
impl = ::SSL_CTX_new(::TLSv1_method());
--- ./src/third_party/boost-1.56.0/boost/asio/ssl/impl/context.ipp 2016-03-31 13:04:25.440868316 +0200
+++ ./src/third_party/boost-1.56.0/boost/asio/ssl/impl/context.ipp.orig 2016-03-31 12:59:31.745890297 +0200
@@ -88,13 +88,13 @@ context::context(context::method m)
break;
#endif // defined(OPENSSL_NO_SSL2)
case context::sslv3:
- handle_ = ::SSL_CTX_new(::SSLv3_method());
+ handle_ = ::SSL_CTX_new(::SSLv23_method());
break;
case context::sslv3_client:
- handle_ = ::SSL_CTX_new(::SSLv3_client_method());
+ handle_ = ::SSL_CTX_new(::SSLv23_client_method());
break;
case context::sslv3_server:
- handle_ = ::SSL_CTX_new(::SSLv3_server_method());
+ handle_ = ::SSL_CTX_new(::SSLv23_server_method());
break;
case context::tlsv1:
handle_ = ::SSL_CTX_new(::TLSv1_method());

View File

@ -2,7 +2,6 @@
pkgname=mongodb
version=3.2.4
revision=2
broken="SSLv3_client_method"
hostmakedepends="scons"
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel
gperftools-devel libsasl-devel yaml-cpp-devel valgrind-devel"