diff options
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index b15465d550..fa70f21f95 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -2028,7 +2028,7 @@ tls1_process_ticket(SSL *s, unsigned char *session_id, int len, | |||
2028 | if (p >= limit) | 2028 | if (p >= limit) |
2029 | return -1; | 2029 | return -1; |
2030 | /* Skip past DTLS cookie */ | 2030 | /* Skip past DTLS cookie */ |
2031 | if (s->version == DTLS1_VERSION || s->version == DTLS1_BAD_VER) { | 2031 | if (SSL_IS_DTLS(s)) { |
2032 | i = *(p++); | 2032 | i = *(p++); |
2033 | p += i; | 2033 | p += i; |
2034 | if (p >= limit) | 2034 | if (p >= limit) |
@@ -2296,9 +2296,10 @@ tls1_process_sigalgs(SSL *s, const unsigned char *data, int dsize) | |||
2296 | const EVP_MD *md; | 2296 | const EVP_MD *md; |
2297 | CERT *c = s->cert; | 2297 | CERT *c = s->cert; |
2298 | 2298 | ||
2299 | /* Extension ignored for TLS versions below 1.2 */ | 2299 | /* Extension ignored for inappropriate versions */ |
2300 | if (TLS1_get_version(s) < TLS1_2_VERSION) | 2300 | if (!SSL_USE_SIGALGS(s)) |
2301 | return 1; | 2301 | return 1; |
2302 | |||
2302 | /* Should never happen */ | 2303 | /* Should never happen */ |
2303 | if (!c) | 2304 | if (!c) |
2304 | return 0; | 2305 | return 0; |