Absorb ssl3_get_algorithm2() into ssl_get_handshake_evp_md().
authorjsing <jsing@openbsd.org>
Sun, 7 Feb 2021 15:26:32 +0000 (15:26 +0000)
committerjsing <jsing@openbsd.org>
Sun, 7 Feb 2021 15:26:32 +0000 (15:26 +0000)
commit605ba3c6f07d2e102b534645d46bcc9a8e041b52
treeabcfc59b82e830f090fa28e5c564d77368809afb
parent8109099ad627e31ead5b53b16a409a63a9000549
Absorb ssl3_get_algorithm2() into ssl_get_handshake_evp_md().

The mess that is ssl_get_algorithm2() only exists to upgrade the handshake
MAC of a pre-TLSv1.2 cipher suite to SHA256 when used with TLSv1.2. We can
readily do this in ssl_get_handshake_evp_md(), which is far more readable.

ok tb@
lib/libssl/s3_lib.c
lib/libssl/ssl_ciph.c
lib/libssl/ssl_clnt.c
lib/libssl/ssl_locl.h