]> 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, 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/22260)

apps/s_client.c

index 6d655263c93c2de07bffc5bc3c7145818fcb209f..7d3fb41adb4285d285e451fb26298c08efbf47a3 100644 (file)
@@ -844,7 +844,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);