diff options
author | Nicholas Fish <gentoo@seaofdirac.net> | 2016-01-26 20:13:00 +0100 |
---|---|---|
committer | Nicholas Fish <gentoo@seaofdirac.net> | 2016-01-26 20:13:00 +0100 |
commit | c5a83124f41864a51f51b810d475b497babdab58 (patch) | |
tree | dffbe1994f6e6182e42fb1cc92bcf0aeb3e479fb /dev-libs/boost/files/boost-1.56.0-no-ssl3.patch | |
parent | Add thunderbird-44.0b1 ebuild working on musl (diff) | |
parent | Add dev-libs/boost for LibreSSL >= 2.3.0 (diff) | |
download | ennui-c5a83124f41864a51f51b810d475b497babdab58.tar.gz ennui-c5a83124f41864a51f51b810d475b497babdab58.tar.bz2 ennui-c5a83124f41864a51f51b810d475b497babdab58.zip |
Subtree merge in boost from csmk's fork of LibreSSL overlay (https://github.com/csmk/libressl/commit/095bc1fb484363d00f763c918df17a2a0ee358d3)
Diffstat (limited to 'dev-libs/boost/files/boost-1.56.0-no-ssl3.patch')
-rw-r--r-- | dev-libs/boost/files/boost-1.56.0-no-ssl3.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-libs/boost/files/boost-1.56.0-no-ssl3.patch b/dev-libs/boost/files/boost-1.56.0-no-ssl3.patch new file mode 100644 index 0000000..d182db7 --- /dev/null +++ b/dev-libs/boost/files/boost-1.56.0-no-ssl3.patch @@ -0,0 +1,49 @@ +--- boost/asio/ssl/impl/context.ipp.orig 2014-07-28 06:32:26.000000000 +0000 ++++ boost/asio/ssl/impl/context.ipp 2015-12-27 07:01:33.717877523 +0000 +@@ -87,6 +87,14 @@ + 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: ++ boost::asio::detail::throw_error( ++ boost::asio::error::invalid_argument, "context"); ++ break; ++#else // defined(OPENSSL_NO_SSL3) + case context::sslv3: + handle_ = ::SSL_CTX_new(::SSLv3_method()); + break; +@@ -96,6 +104,7 @@ + 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; +--- boost/asio/ssl/old/detail/openssl_context_service.hpp.orig 2014-07-28 06:32:26.000000000 +0900 ++++ boost/asio/ssl/old/detail/openssl_context_service.hpp 2015-12-27 07:03:55.384691141 +0900 +@@ -85,6 +85,13 @@ + impl = ::SSL_CTX_new(::SSLv2_server_method()); + break; + #endif // defined(OPENSSL_NO_SSL2) ++#if defined(OPENSSL_NO_SSL3) ++ case context_base::sslv3: ++ case context_base::sslv3_client: ++ case context_base::sslv3_server: ++ boost::asio::detail::throw_error(boost::asio::error::invalid_argument); ++ break; ++#else // defined(OPENSSL_NO_SSL3) + case context_base::sslv3: + impl = ::SSL_CTX_new(::SSLv3_method()); + break; +@@ -94,6 +101,7 @@ + case context_base::sslv3_server: + impl = ::SSL_CTX_new(::SSLv3_server_method()); + break; ++#endif // defined(OPENSSL_NO_SSL3) + case context_base::tlsv1: + impl = ::SSL_CTX_new(::TLSv1_method()); + break; |