diff options
author | doug <> | 2015-06-15 05:16:56 +0000 |
---|---|---|
committer | doug <> | 2015-06-15 05:16:56 +0000 |
commit | 6e37f91580bf8e077c11c85155cef0381d8ef35c (patch) | |
tree | 09daa6da27571646945c913b493870c53aabab06 /src/lib | |
parent | c3c8a32860541df7ab360b602a1449e6d90be892 (diff) | |
download | openbsd-6e37f91580bf8e077c11c85155cef0381d8ef35c.tar.gz openbsd-6e37f91580bf8e077c11c85155cef0381d8ef35c.tar.bz2 openbsd-6e37f91580bf8e077c11c85155cef0381d8ef35c.zip |
Remove ancient compat hack SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG.
This was imported into OpenSSL from SSLeay. It was recently deleted
in OpenSSL commit 7a4dadc3a6a487db92619622b820eb4f7be512c9
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/doc/SSL_CTX_set_options.3 | 6 | ||||
-rw-r--r-- | src/lib/libssl/s3_srvr.c | 25 | ||||
-rw-r--r-- | src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.3 | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/ssl/s3_srvr.c | 25 |
4 files changed, 10 insertions, 52 deletions
diff --git a/src/lib/libssl/doc/SSL_CTX_set_options.3 b/src/lib/libssl/doc/SSL_CTX_set_options.3 index bacd3b84f0..8bb22b7cc6 100644 --- a/src/lib/libssl/doc/SSL_CTX_set_options.3 +++ b/src/lib/libssl/doc/SSL_CTX_set_options.3 | |||
@@ -1,5 +1,5 @@ | |||
1 | .\" | 1 | .\" |
2 | .\" $OpenBSD: SSL_CTX_set_options.3,v 1.4 2015/06/15 03:32:59 doug Exp $ | 2 | .\" $OpenBSD: SSL_CTX_set_options.3,v 1.5 2015/06/15 05:16:56 doug Exp $ |
3 | .\" | 3 | .\" |
4 | .Dd $Mdocdate: June 15 2015 $ | 4 | .Dd $Mdocdate: June 15 2015 $ |
5 | .Dt SSL_CTX_SET_OPTIONS 3 | 5 | .Dt SSL_CTX_SET_OPTIONS 3 |
@@ -197,7 +197,9 @@ non-self-signed CA which does not have its CA in netscape, and the browser has | |||
197 | a cert, it will crash/hang. | 197 | a cert, it will crash/hang. |
198 | Works for 3.x and 4.xbeta | 198 | Works for 3.x and 4.xbeta |
199 | .It Dv SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG | 199 | .It Dv SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG |
200 | \&... | 200 | As of |
201 | .Ox 5.8 , | ||
202 | this option has no effect. | ||
201 | .It Dv SSL_OP_NO_SSLv2 | 203 | .It Dv SSL_OP_NO_SSLv2 |
202 | As of | 204 | As of |
203 | .Ox 5.6 , | 205 | .Ox 5.6 , |
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c index 7f6a5a0bbd..7b6af070c9 100644 --- a/src/lib/libssl/s3_srvr.c +++ b/src/lib/libssl/s3_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_srvr.c,v 1.104 2015/06/15 03:32:59 doug Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.105 2015/06/15 05:16:56 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -148,8 +148,6 @@ | |||
148 | * OTHERWISE. | 148 | * OTHERWISE. |
149 | */ | 149 | */ |
150 | 150 | ||
151 | #define REUSE_CIPHER_BUG | ||
152 | |||
153 | #include <stdio.h> | 151 | #include <stdio.h> |
154 | 152 | ||
155 | #include "ssl_locl.h" | 153 | #include "ssl_locl.h" |
@@ -1126,27 +1124,6 @@ ssl3_get_client_hello(SSL *s) | |||
1126 | } | 1124 | } |
1127 | s->s3->tmp.new_cipher = c; | 1125 | s->s3->tmp.new_cipher = c; |
1128 | } else { | 1126 | } else { |
1129 | /* Session-id reuse */ | ||
1130 | #ifdef REUSE_CIPHER_BUG | ||
1131 | STACK_OF(SSL_CIPHER) *sk; | ||
1132 | SSL_CIPHER *nc = NULL; | ||
1133 | SSL_CIPHER *ec = NULL; | ||
1134 | |||
1135 | if (s->options & SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG) { | ||
1136 | sk = s->session->ciphers; | ||
1137 | for (i = 0; i < sk_SSL_CIPHER_num(sk); i++) { | ||
1138 | c = sk_SSL_CIPHER_value(sk, i); | ||
1139 | if (c->algorithm_enc & SSL_eNULL) | ||
1140 | nc = c; | ||
1141 | } | ||
1142 | if (nc != NULL) | ||
1143 | s->s3->tmp.new_cipher = nc; | ||
1144 | else if (ec != NULL) | ||
1145 | s->s3->tmp.new_cipher = ec; | ||
1146 | else | ||
1147 | s->s3->tmp.new_cipher = s->session->cipher; | ||
1148 | } else | ||
1149 | #endif | ||
1150 | s->s3->tmp.new_cipher = s->session->cipher; | 1127 | s->s3->tmp.new_cipher = s->session->cipher; |
1151 | } | 1128 | } |
1152 | 1129 | ||
diff --git a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.3 b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.3 index bacd3b84f0..8bb22b7cc6 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.3 +++ b/src/lib/libssl/src/doc/ssl/SSL_CTX_set_options.3 | |||
@@ -1,5 +1,5 @@ | |||
1 | .\" | 1 | .\" |
2 | .\" $OpenBSD: SSL_CTX_set_options.3,v 1.4 2015/06/15 03:32:59 doug Exp $ | 2 | .\" $OpenBSD: SSL_CTX_set_options.3,v 1.5 2015/06/15 05:16:56 doug Exp $ |
3 | .\" | 3 | .\" |
4 | .Dd $Mdocdate: June 15 2015 $ | 4 | .Dd $Mdocdate: June 15 2015 $ |
5 | .Dt SSL_CTX_SET_OPTIONS 3 | 5 | .Dt SSL_CTX_SET_OPTIONS 3 |
@@ -197,7 +197,9 @@ non-self-signed CA which does not have its CA in netscape, and the browser has | |||
197 | a cert, it will crash/hang. | 197 | a cert, it will crash/hang. |
198 | Works for 3.x and 4.xbeta | 198 | Works for 3.x and 4.xbeta |
199 | .It Dv SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG | 199 | .It Dv SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG |
200 | \&... | 200 | As of |
201 | .Ox 5.8 , | ||
202 | this option has no effect. | ||
201 | .It Dv SSL_OP_NO_SSLv2 | 203 | .It Dv SSL_OP_NO_SSLv2 |
202 | As of | 204 | As of |
203 | .Ox 5.6 , | 205 | .Ox 5.6 , |
diff --git a/src/lib/libssl/src/ssl/s3_srvr.c b/src/lib/libssl/src/ssl/s3_srvr.c index 7f6a5a0bbd..7b6af070c9 100644 --- a/src/lib/libssl/src/ssl/s3_srvr.c +++ b/src/lib/libssl/src/ssl/s3_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_srvr.c,v 1.104 2015/06/15 03:32:59 doug Exp $ */ | 1 | /* $OpenBSD: s3_srvr.c,v 1.105 2015/06/15 05:16:56 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -148,8 +148,6 @@ | |||
148 | * OTHERWISE. | 148 | * OTHERWISE. |
149 | */ | 149 | */ |
150 | 150 | ||
151 | #define REUSE_CIPHER_BUG | ||
152 | |||
153 | #include <stdio.h> | 151 | #include <stdio.h> |
154 | 152 | ||
155 | #include "ssl_locl.h" | 153 | #include "ssl_locl.h" |
@@ -1126,27 +1124,6 @@ ssl3_get_client_hello(SSL *s) | |||
1126 | } | 1124 | } |
1127 | s->s3->tmp.new_cipher = c; | 1125 | s->s3->tmp.new_cipher = c; |
1128 | } else { | 1126 | } else { |
1129 | /* Session-id reuse */ | ||
1130 | #ifdef REUSE_CIPHER_BUG | ||
1131 | STACK_OF(SSL_CIPHER) *sk; | ||
1132 | SSL_CIPHER *nc = NULL; | ||
1133 | SSL_CIPHER *ec = NULL; | ||
1134 | |||
1135 | if (s->options & SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG) { | ||
1136 | sk = s->session->ciphers; | ||
1137 | for (i = 0; i < sk_SSL_CIPHER_num(sk); i++) { | ||
1138 | c = sk_SSL_CIPHER_value(sk, i); | ||
1139 | if (c->algorithm_enc & SSL_eNULL) | ||
1140 | nc = c; | ||
1141 | } | ||
1142 | if (nc != NULL) | ||
1143 | s->s3->tmp.new_cipher = nc; | ||
1144 | else if (ec != NULL) | ||
1145 | s->s3->tmp.new_cipher = ec; | ||
1146 | else | ||
1147 | s->s3->tmp.new_cipher = s->session->cipher; | ||
1148 | } else | ||
1149 | #endif | ||
1150 | s->s3->tmp.new_cipher = s->session->cipher; | 1127 | s->s3->tmp.new_cipher = s->session->cipher; |
1151 | } | 1128 | } |
1152 | 1129 | ||