summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>2024-01-23 14:58:31 +0100
committerMatt Caswell <matt@openssl.org>2024-04-23 11:57:05 +0100
commita37a32b1508a93054d9eff6ee512939c0b46df1c (patch)
tree21814a20cdae6b94fa9f78a7d5a7a8631ff02441
parent580612f38d600b2796a3c55e5ffe5b0c5e4a2b54 (diff)
Print session ticket for dtls 1.3 as well.
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22260)
-rw-r--r--apps/s_client.c2
1 files changed, 1 insertions, 1 deletions
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);