Only use TLS versions internally (rather than both TLS and DTLS versions).
authorjsing <jsing@openbsd.org>
Thu, 25 Feb 2021 17:06:05 +0000 (17:06 +0000)
committerjsing <jsing@openbsd.org>
Thu, 25 Feb 2021 17:06:05 +0000 (17:06 +0000)
commit970acf874db22f09b7e42996a54559867b6102e2
tree34405a224570d4c15c3de6932b4dfeaaadbcaccd
parent5d6c97755a6b6228e1f7931f69d0ade46cf92c99
Only use TLS versions internally (rather than both TLS and DTLS versions).

DTLS protocol version numbers are the 1's compliment of human readable TLS
version numbers, which means that newer versions decrease in value and
there is no direct mapping between TLS protocol version numbers and DTLS
protocol version numbers.

Rather than having to deal with this internally, only use TLS versions
internally and map between DTLS and TLS protocol versions when necessary.
Rename functions and variables to use 'tls_version' when they contain a
TLS version (and never a DTLS version).

ok tb@
lib/libssl/ssl_ciphers.c
lib/libssl/ssl_lib.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_methods.c
lib/libssl/ssl_packet.c
lib/libssl/ssl_versions.c
lib/libssl/tls13_client.c
lib/libssl/tls13_legacy.c
lib/libssl/tls13_server.c