mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-28 18:07:34 +08:00
Improve layout of the code for debugging with breakpoints
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
8d083042a4
commit
167a754c0d
@ -74,10 +74,19 @@ static void tls_abort_transcript(void *ctx, int level,
|
||||
(void) file;
|
||||
(void) line;
|
||||
|
||||
if (abort_ctx->triggered || abort_ctx->ssl == NULL ||
|
||||
abort_ctx->ssl->handshake == NULL ||
|
||||
abort_ctx->trigger == NULL ||
|
||||
strstr(str, abort_ctx->trigger) == NULL) {
|
||||
if (abort_ctx->triggered){
|
||||
return;
|
||||
}
|
||||
if (abort_ctx->ssl == NULL) {
|
||||
return;
|
||||
}
|
||||
if (abort_ctx->ssl->handshake == NULL) {
|
||||
return;
|
||||
}
|
||||
if (abort_ctx->trigger == NULL) {
|
||||
return;
|
||||
}
|
||||
if (strstr(str, abort_ctx->trigger) == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user