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)
This commit is contained in:
parent
b07107e311
commit
7f5b29c4bf
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user