diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index bc122686c9..65e53f93be 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_tlsext.c,v 1.65 2020/05/09 15:05:50 beck Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.c,v 1.66 2020/05/10 14:07:01 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
@@ -2061,8 +2061,9 @@ tlsext_server_build(SSL *s, CBB *cbb, uint16_t msg_type) | |||
2061 | int | 2061 | int |
2062 | tlsext_server_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type) | 2062 | tlsext_server_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type) |
2063 | { | 2063 | { |
2064 | /* XXX - this possibly should be done by the caller... */ | 2064 | /* XXX - this should be done by the caller... */ |
2065 | tlsext_server_reset_state(s); | 2065 | if (msg_type == SSL_TLSEXT_MSG_CH) |
2066 | tlsext_server_reset_state(s); | ||
2066 | 2067 | ||
2067 | return tlsext_parse(s, cbs, alert, 1, msg_type); | 2068 | return tlsext_parse(s, cbs, alert, 1, msg_type); |
2068 | } | 2069 | } |
@@ -2084,8 +2085,9 @@ tlsext_client_build(SSL *s, CBB *cbb, uint16_t msg_type) | |||
2084 | int | 2085 | int |
2085 | tlsext_client_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type) | 2086 | tlsext_client_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg_type) |
2086 | { | 2087 | { |
2087 | /* XXX - this possibly should be done by the caller... */ | 2088 | /* XXX - this should be done by the caller... */ |
2088 | tlsext_client_reset_state(s); | 2089 | if (msg_type == SSL_TLSEXT_MSG_SH) |
2090 | tlsext_client_reset_state(s); | ||
2089 | 2091 | ||
2090 | return tlsext_parse(s, cbs, alert, 0, msg_type); | 2092 | return tlsext_parse(s, cbs, alert, 0, msg_type); |
2091 | } | 2093 | } |