MINOR: ssl: Remove ClientHello specific traces if !HAVE_SSL_CLIENT_HELLO_CB

SSL libraries like wolfSSL that don't have the clienthello callback
mechanism enabled do not need to have the traces that are only called
from the said callback.
The code added to parse the ciphers relied on a function that wes not
defined in wolfSSL (SSL_CIPHER_find).
This commit is contained in:
Remi Tricot-Le Breton 2025-07-15 10:45:11 +02:00 committed by William Lallemand
parent 665b7d4fa9
commit 7fd849f4e0

View File

@ -215,6 +215,8 @@ static void ssl_trace(enum trace_level level, uint64_t mask, const struct trace_
}
}
#ifdef HAVE_SSL_CLIENT_HELLO_CB
if (mask & SSL_EV_CONN_SIGALG_EXT && src->verbosity >= SSL_VERB_ADVANCED) {
if (a2 && a3) {
const uint16_t *extension_data = a2;
@ -306,5 +308,6 @@ static void ssl_trace(enum trace_level level, uint64_t mask, const struct trace_
}
}
}
#endif /* HAVE_SSL_CLIENT_HELLO_CB */
}