From 1b71ffa0c5fefd0d0c8c6e160e063fe2d68bb10c Mon Sep 17 00:00:00 2001 From: Frederik Wedel-Heinen Date: Tue, 23 Jan 2024 14:58:31 +0100 Subject: Print session ticket for dtls 1.3 as well. Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22260) --- apps/s_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/s_client.c b/apps/s_client.c index 433e9bb5b5..0e50b7f536 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -829,7 +829,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); -- cgit v1.2.3