From ef0a199f8937e6072f81f7a2ef2d78a694ccc53a Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 4 Jun 2022 07:55:44 +0000 Subject: The parse stubs need to skip over the extension data. Found by anton with tlsfuzzer ok anton --- src/lib/libssl/ssl_tlsext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 @@ -/* $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 * Copyright (c) 2017 Doug Hogan @@ -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 { -- cgit v1.2.3-55-g6feb