]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Print session ticket for dtls 1.3 as well.
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Tue, 23 Jan 2024 13:58:31 +0000 (14:58 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 9 Jan 2025 15:57:24 +0000 (16:57 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22260)

apps/s_client.c

index 85be1bf50f335067290da4fbc54cb6a59547de77..d8ed0ff4c297c43ce0e429c2b1e523881b7efba8 100644 (file)
@@ -830,7 +830,7 @@ static int new_session_cb(SSL *s, SSL_SESSION *sess)
      * Session data gets dumped on connection for TLSv1.2 and below, and on
      * arrival of the NewSessionTicket for TLSv1.3.
      */
-    if (SSL_version(s) == TLS1_3_VERSION) {
+    if (SSL_version(s) == TLS1_3_VERSION || SSL_version(s) == DTLS1_3_VERSION) {
         BIO_printf(bio_c_out,
                    "---\nPost-Handshake New Session Ticket arrived:\n");
         SSL_SESSION_print(bio_c_out, sess);