diff options
author | tedu <> | 2014-04-17 23:35:40 +0000 |
---|---|---|
committer | tedu <> | 2014-04-17 23:35:40 +0000 |
commit | 288a9e368d9d4a72792b12a00ad69e3592d94073 (patch) | |
tree | ef2f2b69483c17a9b88284fba5c8f09ea14b3362 /src/lib/libssl/s3_clnt.c | |
parent | 934b5ddbd810d7a899481637c58455698974e7e8 (diff) | |
download | openbsd-288a9e368d9d4a72792b12a00ad69e3592d94073.tar.gz openbsd-288a9e368d9d4a72792b12a00ad69e3592d94073.tar.bz2 openbsd-288a9e368d9d4a72792b12a00ad69e3592d94073.zip |
whack a bunch of disabled code. ok beck lteo
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r-- | src/lib/libssl/s3_clnt.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/lib/libssl/s3_clnt.c b/src/lib/libssl/s3_clnt.c index abae12a8d1..8aef4b4f3d 100644 --- a/src/lib/libssl/s3_clnt.c +++ b/src/lib/libssl/s3_clnt.c | |||
@@ -920,15 +920,9 @@ ssl3_get_server_hello(SSL *s) | |||
920 | if (s->session->cipher) | 920 | if (s->session->cipher) |
921 | s->session->cipher_id = s->session->cipher->id; | 921 | s->session->cipher_id = s->session->cipher->id; |
922 | if (s->hit && (s->session->cipher_id != c->id)) { | 922 | if (s->hit && (s->session->cipher_id != c->id)) { |
923 | /* Workaround is now obsolete */ | 923 | al = SSL_AD_ILLEGAL_PARAMETER; |
924 | #if 0 | 924 | SSLerr(SSL_F_SSL3_GET_SERVER_HELLO, SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED); |
925 | if (!(s->options & SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG)) | 925 | goto f_err; |
926 | #endif | ||
927 | { | ||
928 | al = SSL_AD_ILLEGAL_PARAMETER; | ||
929 | SSLerr(SSL_F_SSL3_GET_SERVER_HELLO, SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED); | ||
930 | goto f_err; | ||
931 | } | ||
932 | } | 926 | } |
933 | s->s3->tmp.new_cipher = c; | 927 | s->s3->tmp.new_cipher = c; |
934 | /* Don't digest cached records if TLS v1.2: we may need them for | 928 | /* Don't digest cached records if TLS v1.2: we may need them for |
@@ -1763,14 +1757,6 @@ ssl3_get_certificate_request(SSL *s) | |||
1763 | 1757 | ||
1764 | /* get the CA RDNs */ | 1758 | /* get the CA RDNs */ |
1765 | n2s(p, llen); | 1759 | n2s(p, llen); |
1766 | #if 0 | ||
1767 | { | ||
1768 | FILE *out; | ||
1769 | out = fopen("/tmp/vsign.der", "w"); | ||
1770 | fwrite(p, 1, llen, out); | ||
1771 | fclose(out); | ||
1772 | } | ||
1773 | #endif | ||
1774 | 1760 | ||
1775 | if ((unsigned long)(p - d + llen) != n) { | 1761 | if ((unsigned long)(p - d + llen) != n) { |
1776 | ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_DECODE_ERROR); | 1762 | ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_DECODE_ERROR); |