summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/s3_clnt.c')
-rw-r--r--src/lib/libssl/s3_clnt.c20
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);