Use cipher suite values instead of IDs.
authorjsing <jsing@openbsd.org>
Mon, 22 Jul 2024 14:47:15 +0000 (14:47 +0000)
committerjsing <jsing@openbsd.org>
Mon, 22 Jul 2024 14:47:15 +0000 (14:47 +0000)
commitf4fe6251b363bc47c99c75caa60c829516bf905e
tree512923dad33e12c6a01c56012867efa7e7b21ca2
parent5bf94a726016b19f850b257796b635ae6242fc10
Use cipher suite values instead of IDs.

OpenSSL has had the concept of cipher IDs, which were a way of working
around overlapping cipher suite values between SSLv2 and SSLv3. Given
that we no longer have to deal with this issue, replace the use of IDs
with cipher suite values. In particular, this means that we can stop
mapping back and forth between the two, simplifying things considerably.

While here, remove the 'valid' member of the SSL_CIPHER. The ssl3_ciphers[]
table is no longer mutable, meaning that ciphers cannot be disabled at
runtime (and we have `#if 0' if we want to do it at compile time).

Clean up the comments and add/update RFC references for cipher suites.

ok tb@
12 files changed:
lib/libssl/s3_lib.c
lib/libssl/ssl_asn1.c
lib/libssl/ssl_ciph.c
lib/libssl/ssl_ciphers.c
lib/libssl/ssl_clnt.c
lib/libssl/ssl_local.h
lib/libssl/ssl_pkt.c
lib/libssl/ssl_sess.c
lib/libssl/ssl_srvr.c
lib/libssl/ssl_txt.c
lib/libssl/tls13_client.c
lib/libssl/tls13_server.c