From 7f5b29c4bf909964f1a73d80af1474f0e4a95624 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 26 Sep 2023 12:14:56 +0100 Subject: [PATCH] Fix no-ssl-trace Ensure we use OPENSSL_NO_SSL_TRACE guards where appropriate. Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/22193) --- test/helpers/quictestlib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helpers/quictestlib.c b/test/helpers/quictestlib.c index 8d71d6002f6..514bb6422a7 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; -- 2.47.2