mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Add unsupported trigger check
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
ed70149de3
commit
e9779ccaa3
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user