From: tb Date: Sat, 4 Jun 2022 07:55:44 +0000 (+0000) Subject: The parse stubs need to skip over the extension data. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=70fb8e0cb1daf9759ddf805162d25bd41d4d21aa;p=openbsd The parse stubs need to skip over the extension data. Found by anton with tlsfuzzer ok anton --- 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 * 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 {