Rely on tlsext_parse() to set a decode_error alert
authortb <tb@openbsd.org>
Sun, 24 Jul 2022 10:52:51 +0000 (10:52 +0000)
committertb <tb@openbsd.org>
Sun, 24 Jul 2022 10:52:51 +0000 (10:52 +0000)
commit4c247e15d3b389836226d49cda6f5a6056b12fda
tree3d127d04ca815237ead1fedb1dafefd538a91d06
parent0cea7bbe94f4bedc2189e20cabb639867ab21c91
Rely on tlsext_parse() to set a decode_error alert

Instead of setting the alert manually in various parse handlers, we can
make use of the fact that tlsext_parse() sets the alert to decode_error
by default. This simplifies the code quite a bit.

ok jsing
lib/libssl/ssl_tlsext.c