mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-03 23:43:40 +00:00
test_suite_debug: fix USE_PSA_INIT/DONE guards in a test
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
d7ca39511f
commit
92c3f36866
@ -224,6 +224,7 @@ typedef enum {
|
|||||||
MBEDTLS_PK_DEBUG_NONE = 0,
|
MBEDTLS_PK_DEBUG_NONE = 0,
|
||||||
MBEDTLS_PK_DEBUG_MPI,
|
MBEDTLS_PK_DEBUG_MPI,
|
||||||
MBEDTLS_PK_DEBUG_ECP,
|
MBEDTLS_PK_DEBUG_ECP,
|
||||||
|
MBEDTLS_PK_DEBUG_PSA_EC,
|
||||||
} mbedtls_pk_debug_type;
|
} mbedtls_pk_debug_type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -167,11 +167,11 @@ void mbedtls_debug_print_crt(char *crt_file, char *file, int line,
|
|||||||
mbedtls_ssl_config conf;
|
mbedtls_ssl_config conf;
|
||||||
struct buffer_data buffer;
|
struct buffer_data buffer;
|
||||||
|
|
||||||
MD_PSA_INIT();
|
|
||||||
|
|
||||||
mbedtls_ssl_init(&ssl);
|
mbedtls_ssl_init(&ssl);
|
||||||
mbedtls_ssl_config_init(&conf);
|
mbedtls_ssl_config_init(&conf);
|
||||||
mbedtls_x509_crt_init(&crt);
|
mbedtls_x509_crt_init(&crt);
|
||||||
|
MD_OR_USE_PSA_INIT();
|
||||||
|
|
||||||
memset(buffer.buf, 0, 2000);
|
memset(buffer.buf, 0, 2000);
|
||||||
buffer.ptr = buffer.buf;
|
buffer.ptr = buffer.buf;
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ exit:
|
|||||||
mbedtls_x509_crt_free(&crt);
|
mbedtls_x509_crt_free(&crt);
|
||||||
mbedtls_ssl_free(&ssl);
|
mbedtls_ssl_free(&ssl);
|
||||||
mbedtls_ssl_config_free(&conf);
|
mbedtls_ssl_config_free(&conf);
|
||||||
MD_PSA_DONE();
|
MD_OR_USE_PSA_DONE();
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user