summaryrefslogtreecommitdiff
path: root/libraries/cpp-netlib/OPENSSL_NO_SSL3.patch
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2017-02-08 10:21:55 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-02-10 07:16:25 +0700
commit1b6cf4e2f15329eaf209049b2fb6ce1ab769c199 (patch)
tree99ba237cb31f2aa9e5e9090bccbef0fc68386fbb /libraries/cpp-netlib/OPENSSL_NO_SSL3.patch
parenteed5a688468aca47af41b696ff4e3153eeaf13ea (diff)
downloadslackbuilds-1b6cf4e2f15329eaf209049b2fb6ce1ab769c199.tar.gz
libraries/cpp-netlib: Added (The C++ Network Library Project).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/cpp-netlib/OPENSSL_NO_SSL3.patch')
-rw-r--r--libraries/cpp-netlib/OPENSSL_NO_SSL3.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/cpp-netlib/OPENSSL_NO_SSL3.patch b/libraries/cpp-netlib/OPENSSL_NO_SSL3.patch
new file mode 100644
index 0000000000..816097d2fc
--- /dev/null
+++ b/libraries/cpp-netlib/OPENSSL_NO_SSL3.patch
@@ -0,0 +1,25 @@
+--- deps/asio/asio/include/asio/ssl/impl/context.ipp
++++ deps/asio/asio/include/asio/ssl/impl/context.ipp
+@@ -89,6 +89,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;
+@@ -98,6 +106,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;