]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Adds DTLS1.3 to ssl protocol to text structs
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Wed, 4 Oct 2023 08:03:45 +0000 (10:03 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Oct 2025 12:45:12 +0000 (14:45 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22273)

ssl/ssl_conf.c
ssl/t1_trce.c
test/helpers/ssl_test_ctx.c
test/ssl_old_test.c

index 3d835ab33c92f1ad8b4145538b5dd06c6c1a2c04..2ee4d95895cf06311aab0c05e266b82e23f64281 100644 (file)
@@ -323,7 +323,8 @@ static int protocol_from_string(const char *value)
         {"TLSv1.2", TLS1_2_VERSION},
         {"TLSv1.3", TLS1_3_VERSION},
         {"DTLSv1", DTLS1_VERSION},
-        {"DTLSv1.2", DTLS1_2_VERSION}
+        {"DTLSv1.2", DTLS1_2_VERSION},
+        {"DTLSv1.3", DTLS1_3_VERSION}
     };
     size_t i;
     size_t n = OSSL_NELEM(versions);
index 640552c0ba0dbc372c2d8be26586eb8405db39de..41d2f0e591e311e42df4b99f8a554696e50ac05a 100644 (file)
@@ -70,6 +70,7 @@ static const ssl_trace_tbl ssl_version_tbl[] = {
     {TLS1_3_VERSION, "TLS 1.3"},
     {DTLS1_VERSION, "DTLS 1.0"},
     {DTLS1_2_VERSION, "DTLS 1.2"},
+    {DTLS1_3_VERSION, "DTLS 1.3"},
     {DTLS1_BAD_VER, "DTLS 1.0 (bad)"}
 };
 
index cbd6481e72e4f330ab9332ffb295ff9154bd145c..9d6e887285b4c83880b44da7de093e516118acd2 100644 (file)
@@ -161,6 +161,7 @@ static const test_enum ssl_protocols[] = {
      {"SSLv3", SSL3_VERSION},
      {"DTLSv1", DTLS1_VERSION},
      {"DTLSv1.2", DTLS1_2_VERSION},
+     {"DTLSv1.3", DTLS1_3_VERSION},
 };
 
 __owur static int parse_protocol(SSL_TEST_CTX *test_ctx, const char *value)
index b404efa2de2cfad593370ed46f7d28ec41d7c9bf..e2a9e9a40101a9a57b00977e6f04d8a5ae067428 100644 (file)
@@ -826,7 +826,8 @@ static int protocol_from_string(const char *value)
         {"tls1.2", TLS1_2_VERSION},
         {"tls1.3", TLS1_3_VERSION},
         {"dtls1", DTLS1_VERSION},
-        {"dtls1.2", DTLS1_2_VERSION}};
+        {"dtls1.2", DTLS1_2_VERSION},
+        {"dtls1.3", DTLS1_3_VERSION}};
     size_t i;
     size_t n = OSSL_NELEM(versions);