diff options
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index fc54fe1e6d..f3522a02be 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_lib.c,v 1.84 2015/09/01 13:38:27 jsing Exp $ */ | 1 | /* $OpenBSD: t1_lib.c,v 1.85 2015/09/12 16:10:08 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 | * |
@@ -659,11 +659,6 @@ ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, unsigned char *limit) | |||
659 | } | 659 | } |
660 | } | 660 | } |
661 | 661 | ||
662 | /* don't add extensions for SSLv3 unless doing secure renegotiation */ | ||
663 | if (s->client_version == SSL3_VERSION && | ||
664 | !s->s3->send_connection_binding) | ||
665 | return p; | ||
666 | |||
667 | ret += 2; | 662 | ret += 2; |
668 | 663 | ||
669 | if (ret >= limit) | 664 | if (ret >= limit) |
@@ -973,10 +968,6 @@ ssl_add_serverhello_tlsext(SSL *s, unsigned char *p, unsigned char *limit) | |||
973 | alg_a & SSL_aECDSA) && | 968 | alg_a & SSL_aECDSA) && |
974 | s->session->tlsext_ecpointformatlist != NULL; | 969 | s->session->tlsext_ecpointformatlist != NULL; |
975 | 970 | ||
976 | /* don't add extensions for SSLv3, unless doing secure renegotiation */ | ||
977 | if (s->version == SSL3_VERSION && !s->s3->send_connection_binding) | ||
978 | return p; | ||
979 | |||
980 | ret += 2; | 971 | ret += 2; |
981 | if (ret >= limit) | 972 | if (ret >= limit) |
982 | return NULL; /* this really never occurs, but ... */ | 973 | return NULL; /* this really never occurs, but ... */ |
@@ -2048,7 +2039,7 @@ tls1_process_ticket(SSL *s, const unsigned char *session, int session_len, | |||
2048 | */ | 2039 | */ |
2049 | if (SSL_get_options(s) & SSL_OP_NO_TICKET) | 2040 | if (SSL_get_options(s) & SSL_OP_NO_TICKET) |
2050 | return 0; | 2041 | return 0; |
2051 | if (s->version <= SSL3_VERSION || !limit) | 2042 | if (!limit) |
2052 | return 0; | 2043 | return 0; |
2053 | 2044 | ||
2054 | if (limit < session) | 2045 | if (limit < session) |