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)
This commit is contained in:
Frederik Wedel-Heinen 2024-01-23 14:58:31 +01:00 committed by Tomas Mraz
parent d8b98684b6
commit 4488892d02
1 changed files with 1 additions and 1 deletions

View 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);