diff options
| author | tb <> | 2022-06-04 07:55:44 +0000 |
|---|---|---|
| committer | tb <> | 2022-06-04 07:55:44 +0000 |
| commit | 51381666229d1b716b624626ab65255be43d26ca (patch) | |
| tree | 3681cfd6a3ae758d451161b85a089cf1716c8cfd /src | |
| parent | 69ca0fad2ca5ce87c0f22f7afbc5c37697fa5b6c (diff) | |
| download | openbsd-51381666229d1b716b624626ab65255be43d26ca.tar.gz openbsd-51381666229d1b716b624626ab65255be43d26ca.tar.bz2 openbsd-51381666229d1b716b624626ab65255be43d26ca.zip | |
The parse stubs need to skip over the extension data.
Found by anton with tlsfuzzer
ok anton
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index f0490de508..53d40157e9 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.112 2022/06/03 13:31:49 tb Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.c,v 1.113 2022/06/04 07:55:44 tb 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> |
| @@ -1921,7 +1921,7 @@ tlsext_psk_client_build(SSL *s, uint16_t msg_type, CBB *cbb) | |||
| 1921 | int | 1921 | int |
| 1922 | tlsext_psk_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) | 1922 | tlsext_psk_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) |
| 1923 | { | 1923 | { |
| 1924 | return 0; | 1924 | return CBS_skip(cbs, CBS_len(cbs)); |
| 1925 | } | 1925 | } |
| 1926 | 1926 | ||
| 1927 | int | 1927 | int |
| @@ -1939,7 +1939,7 @@ tlsext_psk_server_build(SSL *s, uint16_t msg_type, CBB *cbb) | |||
| 1939 | int | 1939 | int |
| 1940 | tlsext_psk_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) | 1940 | tlsext_psk_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) |
| 1941 | { | 1941 | { |
| 1942 | return 0; | 1942 | return CBS_skip(cbs, CBS_len(cbs)); |
| 1943 | } | 1943 | } |
| 1944 | 1944 | ||
| 1945 | struct tls_extension_funcs { | 1945 | struct tls_extension_funcs { |
