summaryrefslogtreecommitdiffstats
path: root/ssl/d1_lib.c
diff options
context:
space:
mode:
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>2023-10-03 09:39:47 +0200
committerRichard Levitte <levitte@openssl.org>2024-03-18 13:01:01 +0100
commit84ce747b1cddc1b92eabf258431664b71d73df28 (patch)
tree511f8e31127c571247f344af002651305238399d /ssl/d1_lib.c
parentdc9bc6c8e1bd329ead703417a2235ab3e97557ec (diff)
Adds initial dtls 1.3 structs and definitions
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22259)
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r--ssl/d1_lib.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c
index 1ac0975d0a..f36d5a3d5f 100644
--- a/ssl/d1_lib.c
+++ b/ssl/d1_lib.c
@@ -51,6 +51,21 @@ const SSL3_ENC_METHOD DTLSv1_2_enc_data = {
dtls1_handshake_write
};
+const SSL3_ENC_METHOD DTLSv1_3_enc_data = {
+ tls13_setup_key_block,
+ tls13_generate_master_secret,
+ tls13_change_cipher_state,
+ tls13_final_finish_mac,
+ TLS_MD_CLIENT_FINISH_CONST, TLS_MD_CLIENT_FINISH_CONST_SIZE,
+ TLS_MD_SERVER_FINISH_CONST, TLS_MD_SERVER_FINISH_CONST_SIZE,
+ tls13_alert_code,
+ tls13_export_keying_material,
+ SSL_ENC_FLAG_DTLS | SSL_ENC_FLAG_SIGALGS | SSL_ENC_FLAG_SHA256_PRF,
+ dtls1_set_handshake_header,
+ dtls1_close_construct_packet,
+ dtls1_handshake_write
+};
+
OSSL_TIME dtls1_default_timeout(void)
{
/*