diff options
author | Matt Caswell <matt@openssl.org> | 2023-09-26 13:14:56 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-09-28 10:49:49 +0200 |
commit | 7f5b29c4bf909964f1a73d80af1474f0e4a95624 (patch) | |
tree | 26d8cf848eeb9f508cf9a3c28855ac1f722c7c52 | |
parent | Move e_os2.h up in quictestlib.c to allow symbol definition consistency. (diff) | |
download | openssl-7f5b29c4bf909964f1a73d80af1474f0e4a95624.tar.xz openssl-7f5b29c4bf909964f1a73d80af1474f0e4a95624.zip |
Fix no-ssl-trace
Ensure we use OPENSSL_NO_SSL_TRACE guards where appropriate.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22193)
-rw-r--r-- | test/helpers/quictestlib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/helpers/quictestlib.c b/test/helpers/quictestlib.c index 8d71d6002f..514bb6422a 100644 --- a/test/helpers/quictestlib.c +++ b/test/helpers/quictestlib.c @@ -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)) @@ -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; |