diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-04 07:55:45 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-06-04 07:55:45 +0000 |
commit | 64e9c741291942518f964ac4bf89ec4ba3e9b0d7 (patch) | |
tree | 8ed79ec8545fe56090569855f1eda5293082b9af /lib | |
parent | 3abe98d1c2d2fa2f1ab4340447a9ca474e6cf2d6 (diff) |
The parse stubs need to skip over the extension data.
Found by anton with tlsfuzzer
ok anton
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/ssl_tlsext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_tlsext.c b/lib/libssl/ssl_tlsext.c index f0490de5087..53d40157e93 100644 --- a/lib/libssl/ssl_tlsext.c +++ b/lib/libssl/ssl_tlsext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_tlsext.c,v 1.112 2022/06/03 13:31:49 tb Exp $ */ +/* $OpenBSD: ssl_tlsext.c,v 1.113 2022/06/04 07:55:44 tb Exp $ */ /* * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> @@ -1921,7 +1921,7 @@ tlsext_psk_client_build(SSL *s, uint16_t msg_type, CBB *cbb) int tlsext_psk_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) { - return 0; + return CBS_skip(cbs, CBS_len(cbs)); } int @@ -1939,7 +1939,7 @@ tlsext_psk_server_build(SSL *s, uint16_t msg_type, CBB *cbb) int tlsext_psk_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) { - return 0; + return CBS_skip(cbs, CBS_len(cbs)); } struct tls_extension_funcs { |