Simplify tlsext_keyshare_server_parse()
authorjsing <jsing@openbsd.org>
Tue, 11 Jan 2022 18:22:16 +0000 (18:22 +0000)
committerjsing <jsing@openbsd.org>
Tue, 11 Jan 2022 18:22:16 +0000 (18:22 +0000)
commitcf04557daa1d18d8befafc06a6f72af38546cd57
tree34baed80e4f223a4d6d2f14658e3c1928f733a9e
parentb1dcd1062edd55a6b4895afc0ef18a85d3a472e2
Simplify tlsext_keyshare_server_parse()

SSL_AD_DECODE_ERROR is the default alert for a TLS extension parsing
failure - remove the various gotos and simply return 0 instead.

ok tb@
lib/libssl/ssl_tlsext.c