Skip to content

Commit

Permalink
Merge pull request #1316 from lultimouomo/fix_debian_openssl
Browse files Browse the repository at this point in the history
Dont use OpenSSL SSLv3* methods. Fixes #1315.
  • Loading branch information
s-ludwig committed Nov 3, 2015
2 parents 289a35b + 0cbe4a0 commit 46859be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vibe/stream/openssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ final class OpenSSLContext : TLSContext {
case TLSContextKind.client:
final switch (ver) {
case TLSVersion.any: method = SSLv23_client_method(); options |= SSL_OP_NO_SSLv3; break;
case TLSVersion.ssl3: method = SSLv3_client_method(); break;
case TLSVersion.ssl3: method = SSLv23_client_method(); options |= SSL_OP_NO_SSLv2|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1: method = TLSv1_client_method(); break;
//case TLSVersion.tls1_1: method = TLSv1_1_client_method(); break;
//case TLSVersion.tls1_2: method = TLSv1_2_client_method(); break;
Expand All @@ -404,7 +404,7 @@ final class OpenSSLContext : TLSContext {
case TLSContextKind.serverSNI:
final switch (ver) {
case TLSVersion.any: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv3; break;
case TLSVersion.ssl3: method = SSLv3_server_method(); break;
case TLSVersion.ssl3: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv2|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1: method = TLSv1_server_method(); break;
case TLSVersion.tls1_1: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_2; break;
case TLSVersion.tls1_2: method = SSLv23_server_method(); options |= SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1; break;
Expand Down

0 comments on commit 46859be

Please sign in to comment.