Support for building with OpenSSL when OPENSSL_NO_SSL3 is defined.
This commit is contained in:
parent
722f7e2be0
commit
44f3ade708
@ -84,6 +84,14 @@ context::context(context::method m)
|
|||||||
handle_ = ::SSL_CTX_new(::SSLv2_server_method());
|
handle_ = ::SSL_CTX_new(::SSLv2_server_method());
|
||||||
break;
|
break;
|
||||||
#endif // defined(OPENSSL_NO_SSL2)
|
#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:
|
case context::sslv3:
|
||||||
handle_ = ::SSL_CTX_new(::SSLv3_method());
|
handle_ = ::SSL_CTX_new(::SSLv3_method());
|
||||||
break;
|
break;
|
||||||
@ -93,6 +101,7 @@ context::context(context::method m)
|
|||||||
case context::sslv3_server:
|
case context::sslv3_server:
|
||||||
handle_ = ::SSL_CTX_new(::SSLv3_server_method());
|
handle_ = ::SSL_CTX_new(::SSLv3_server_method());
|
||||||
break;
|
break;
|
||||||
|
#endif // defined(OPENSSL_NO_SSL3)
|
||||||
case context::tlsv1:
|
case context::tlsv1:
|
||||||
handle_ = ::SSL_CTX_new(::TLSv1_method());
|
handle_ = ::SSL_CTX_new(::TLSv1_method());
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user