Clean up TLSv1.2 certificate request handshake data.
authorjsing <jsing@openbsd.org>
Wed, 21 Apr 2021 19:27:56 +0000 (19:27 +0000)
committerjsing <jsing@openbsd.org>
Wed, 21 Apr 2021 19:27:56 +0000 (19:27 +0000)
commit1f38de1dc356717682c253b7d6280ceb1ad92e5b
tree339a379b62ac06e78bc434beeb440e56287d8acf
parent68388e5f0fca1620e4468bc34192ae62007e6c3e
Clean up TLSv1.2 certificate request handshake data.

Currently cert_req is used by clients and cert_request is used by servers.
Replace this by a single cert_request used by either client or server.
Remove the certificate types as they are currently unused. This also fixes
a bug whereby if the number of certificate types exceeds SSL3_CT_NUMBER
the number of bytes read in is insufficient, which will break decoding.

ok inoguchi@ tb@
lib/libssl/s3_lib.c
lib/libssl/ssl_cert.c
lib/libssl/ssl_clnt.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_srvr.c