Plumb decode errors through key share parsing code.
authorjsing <jsing@openbsd.org>
Tue, 11 Jan 2022 18:28:41 +0000 (18:28 +0000)
committerjsing <jsing@openbsd.org>
Tue, 11 Jan 2022 18:28:41 +0000 (18:28 +0000)
commit7dd422f86e2f79d586d541189cce858f1a896d33
treed886d43a3be33f3b129c624120f3cbf0e83e3c9b
parent9ac5860242faab930b9227c6f9d6cd175557e339
Plumb decode errors through key share parsing code.

Distinguish between decode errors and other errors, so that we can send
a SSL_AD_DECODE_ERROR alert when appropriate.

Fixes a tlsfuzzer failure, due to it expecting a decode error alert and
not receiving one.

Prompted by anton@

ok tb@
lib/libssl/ssl_clnt.c
lib/libssl/ssl_kex.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_srvr.c
lib/libssl/ssl_tlsext.c
lib/libssl/tls_internal.h
lib/libssl/tls_key_share.c