Skip to content

Commit

Permalink
Fix no-ssl-trace
Browse files Browse the repository at this point in the history
Ensure we use OPENSSL_NO_SSL_TRACE guards where appropriate.

Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#22193)
  • Loading branch information
mattcaswell committed Sep 28, 2023
1 parent b07107e commit 7f5b29c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/helpers/quictestlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ int qtest_create_quic_objects(OSSL_LIB_CTX *libctx, SSL_CTX *clientctx,
return 0;
}

#ifndef OPENSSL_NO_SSL_TRACE
if ((flags & QTEST_FLAG_CLIENT_TRACE) != 0) {
tmpbio = BIO_new_fp(stdout, BIO_NOCLOSE);
if (!TEST_ptr(tmpbio))
Expand All @@ -106,6 +107,7 @@ int qtest_create_quic_objects(OSSL_LIB_CTX *libctx, SSL_CTX *clientctx,
SSL_set_msg_callback(*cssl, SSL_trace);
SSL_set_msg_callback_arg(*cssl, tmpbio);
}
#endif
if (tracebio != NULL)
*tracebio = tmpbio;

Expand Down

0 comments on commit 7f5b29c

Please sign in to comment.