diff options
author | Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk> | 2023-10-16 09:57:00 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2024-04-23 11:57:05 +0100 |
commit | 553fcfbff65f782d55b463852d052fc9e2208491 (patch) | |
tree | 0bba515e24a959ef19d886cdcbad289d5e2e3cb9 | |
parent | 988952dd3feeeef9815a305310af2efb101460c4 (diff) |
Fix session print for dtls1.3
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22936)
-rw-r--r-- | ssl/ssl_txt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c index 9e9c2e10ec..6d3967cf46 100644 --- a/ssl/ssl_txt.c +++ b/ssl/ssl_txt.c @@ -33,11 +33,12 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) { size_t i; const char *s; - int istls13; + int isversion13; if (x == NULL) goto err; - istls13 = (x->ssl_version == TLS1_3_VERSION); + isversion13 = (x->ssl_version == TLS1_3_VERSION) + || (x->ssl_version == DTLS1_3_VERSION); if (BIO_puts(bp, "SSL-Session:\n") <= 0) goto err; s = ssl_protocol_to_string(x->ssl_version); @@ -72,7 +73,7 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) if (BIO_printf(bp, "%02X", x->sid_ctx[i]) <= 0) goto err; } - if (istls13) { + if (isversion13) { if (BIO_puts(bp, "\n Resumption PSK: ") <= 0) goto err; } else if (BIO_puts(bp, "\n Master-Key: ") <= 0) @@ -151,7 +152,7 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) x->flags & SSL_SESS_FLAG_EXTMS ? "yes" : "no") <= 0) goto err; - if (istls13) { + if (isversion13) { if (BIO_printf(bp, " Max Early Data: %u\n", (unsigned int)x->ext.max_early_data) <= 0) goto err; |