Simplify tlsext_supported_groups_server_parse
authortb <tb@openbsd.org>
Wed, 20 Jul 2022 15:16:06 +0000 (15:16 +0000)
committertb <tb@openbsd.org>
Wed, 20 Jul 2022 15:16:06 +0000 (15:16 +0000)
commit90dae725fcf59f84132aec26dc3dd569b667c283
tree8f8c7608f18f8733f18ee87768f204cabfd31db6
parent7bcf05b6201c24021c16f11496b7ee8c2bac43df
Simplify tlsext_supported_groups_server_parse

Add an early return in the s->internal->hit case so that we can unindent
a lot of this code. In the HRR case, we do not need to check that the list
of supported groups is unmodified from the first CH. The CH extension
hashing already does that for us.

ok jsing
lib/libssl/ssl_tlsext.c