Line 0
Link Here
|
|
|
1 |
--- include/asio/ssl/impl/context.ipp.orig 2015-03-23 20:28:30 UTC |
2 |
+++ include/asio/ssl/impl/context.ipp |
3 |
@@ -88,7 +88,15 @@ context::context(context::method m) |
4 |
handle_ = ::SSL_CTX_new(::SSLv2_server_method()); |
5 |
break; |
6 |
#endif // defined(OPENSSL_NO_SSL2) |
7 |
+#if defined(OPENSSL_NO_SSL3) |
8 |
case context::sslv3: |
9 |
+ case context::sslv3_client: |
10 |
+ case context::sslv3_server: |
11 |
+ asio::detail::throw_error( |
12 |
+ asio::error::invalid_argument, "context"); |
13 |
+ break; |
14 |
+#else // defined(OPENSSL_NO_SSL3) |
15 |
+ case context::sslv3: |
16 |
handle_ = ::SSL_CTX_new(::SSLv3_method()); |
17 |
break; |
18 |
case context::sslv3_client: |
19 |
@@ -97,6 +105,7 @@ context::context(context::method m) |
20 |
case context::sslv3_server: |
21 |
handle_ = ::SSL_CTX_new(::SSLv3_server_method()); |
22 |
break; |
23 |
+#endif // defined(OPENSSL_NO_SSL3) |
24 |
case context::tlsv1: |
25 |
handle_ = ::SSL_CTX_new(::TLSv1_method()); |
26 |
break; |