Add unsupported trigger check

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor 2026-06-01 08:12:23 +01:00
parent 6b60598c88
commit 64b837bef9

View File

@ -88,9 +88,6 @@ static void tls_abort_transcript(void *ctx, int level,
if (abort_ctx->ssl->handshake == NULL) {
return;
}
if (abort_ctx->trigger == NULL) {
return;
}
if (strstr(str, abort_ctx->trigger) == NULL) {
return;
}
@ -4432,6 +4429,7 @@ void tls_transcript_error_propagation(int endpoint,
server_options.server_max_version = tls_version;
abort_ctx.trigger = trigger;
TEST_ASSERT(abort_ctx.trigger != NULL);
if (endpoint == MBEDTLS_SSL_IS_CLIENT) {
client_options.cli_log_obj = &abort_ctx;