Skip to content

Commit

Permalink
Print session ticket for dtls 1.3 as well.
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #22260)
  • Loading branch information
fwh-dc authored and mattcaswell committed Apr 22, 2024
1 parent 9e196d9 commit a302ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/s_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a302ca6

Please sign in to comment.