Skip to content

Commit

Permalink
Correct traces for crtificates in dtls13
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Oct 13, 2023
1 parent eaee176 commit 4749081
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ssl/t1_trce.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ static int ssl_print_certificates(BIO *bio, const SSL_CONNECTION *sc, int server
{
size_t clen;

if (SSL_CONNECTION_IS_TLS13(sc)
if ((SSL_CONNECTION_IS_TLS13(sc) || SSL_CONNECTION_IS_DTLS13(sc))
&& !ssl_print_hexbuf(bio, indent, "context", 1, &msg, &msglen))
return 0;

Expand All @@ -1358,7 +1358,7 @@ static int ssl_print_certificates(BIO *bio, const SSL_CONNECTION *sc, int server
|| (!server && sc->ext.client_cert_type == TLSEXT_cert_type_rpk)) {
if (!ssl_print_raw_public_key(bio, &sc->ssl, server, indent, &msg, &clen))
return 0;
if (SSL_CONNECTION_IS_TLS13(sc)
if ((SSL_CONNECTION_IS_TLS13(sc) || SSL_CONNECTION_IS_DTLS13(sc))
&& !ssl_print_extensions(bio, indent + 2, server,
SSL3_MT_CERTIFICATE, &msg, &clen))
return 0;
Expand All @@ -1369,7 +1369,7 @@ static int ssl_print_certificates(BIO *bio, const SSL_CONNECTION *sc, int server
while (clen > 0) {
if (!ssl_print_certificate(bio, sc, indent + 2, &msg, &clen))
return 0;
if (SSL_CONNECTION_IS_TLS13(sc)
if ((SSL_CONNECTION_IS_TLS13(sc) || SSL_CONNECTION_IS_DTLS13(sc))
&& !ssl_print_extensions(bio, indent + 2, server,
SSL3_MT_CERTIFICATE, &msg, &clen))
return 0;
Expand Down Expand Up @@ -1455,7 +1455,7 @@ static int ssl_print_cert_request(BIO *bio, int indent, const SSL_CONNECTION *sc
size_t xlen;
unsigned int sigalg;

if (SSL_CONNECTION_IS_TLS13(sc)) {
if ((SSL_CONNECTION_IS_TLS13(sc) || SSL_CONNECTION_IS_DTLS13(sc))) {
if (!ssl_print_hexbuf(bio, indent, "request_context", 1, &msg, &msglen))
return 0;
if (!ssl_print_extensions(bio, indent, 1,
Expand Down Expand Up @@ -1530,7 +1530,7 @@ static int ssl_print_cert_request(BIO *bio, int indent, const SSL_CONNECTION *sc
xlen -= dlen + 2;
msg += dlen;
}
if (SSL_CONNECTION_IS_TLS13(sc)) {
if ((SSL_CONNECTION_IS_TLS13(sc) || SSL_CONNECTION_IS_DTLS13(sc))) {
if (!ssl_print_hexbuf(bio, indent, "request_extensions", 2,
&msg, &msglen))
return 0;
Expand Down

0 comments on commit 4749081

Please sign in to comment.