Provide QUIC encryption levels.
authorjsing <jsing@openbsd.org>
Sun, 24 Jul 2022 14:16:29 +0000 (14:16 +0000)
committerjsing <jsing@openbsd.org>
Sun, 24 Jul 2022 14:16:29 +0000 (14:16 +0000)
commit6ea83a9d368435f04212028ac5fffc60f129362f
treea2755c5f27f5662370488086d02ecc1b3dfa5f61
parent4fbb390c4ba2d4a12158b5e2edef87cf147cea4c
Provide QUIC encryption levels.

QUIC wants to know what "encryption level" handshake messages should be
sent at. Provide an ssl_encryption_level_t enum (via BoringSSL) that
defines these (of course quictls decided to make this an
OSSL_ENCRYPTION_LEVEL typedef, so provide that as well).

Wire these through to tls13_record_layer_set_{read,write}_traffic_key() so
that they can be used in upcoming commits.

ok tb@
lib/libssl/ssl.h
lib/libssl/tls13_client.c
lib/libssl/tls13_internal.h
lib/libssl/tls13_lib.c
lib/libssl/tls13_record_layer.c
lib/libssl/tls13_server.c