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,16 @@ 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::sslv2: |
16 |
+ case context::sslv3: |
17 |
handle_ = ::SSL_CTX_new(::SSLv3_method()); |
18 |
break; |
19 |
case context::sslv3_client: |
20 |
@@ -97,6 +106,8 @@ context::context(context::method m) |
21 |
case context::sslv3_server: |
22 |
handle_ = ::SSL_CTX_new(::SSLv3_server_method()); |
23 |
break; |
24 |
+#else // defined(OPENSSL_NO_SSL3) |
25 |
+ case context::sslv2: |
26 |
case context::tlsv1: |
27 |
handle_ = ::SSL_CTX_new(::TLSv1_method()); |
28 |
break; |