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/libssl/s3_srvr.c | |
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/libssl/s3_srvr.c')
-rw-r--r-- | src/lib/libssl/s3_srvr.c | 25 |
1 files changed, 1 insertions, 24 deletions
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 | ||