diff options
author | tb <> | 2022-06-04 07:55:44 +0000 |
---|---|---|
committer | tb <> | 2022-06-04 07:55:44 +0000 |
commit | ef0a199f8937e6072f81f7a2ef2d78a694ccc53a (patch) | |
tree | 3681cfd6a3ae758d451161b85a089cf1716c8cfd /src/lib | |
parent | 0668d334dd826a11c75243533ab82e80fdc5f7c0 (diff) | |
download | openbsd-ef0a199f8937e6072f81f7a2ef2d78a694ccc53a.tar.gz openbsd-ef0a199f8937e6072f81f7a2ef2d78a694ccc53a.tar.bz2 openbsd-ef0a199f8937e6072f81f7a2ef2d78a694ccc53a.zip |
The parse stubs need to skip over the extension data.
Found by anton with tlsfuzzer
ok anton
Diffstat (limited to 'src/lib')
-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 { |