mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-17 02:43:26 +00:00
Fix failing psasim tests
This commit fixes failing psasim tests by ensuring that MBEDTLS_VERSION_C is defined before attempting to access version information. Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
parent
c19f8aea8a
commit
d617283187
@ -52,12 +52,14 @@ int psa_server_main(int argc, char *argv[])
|
||||
psa_msg_t msg = { -1 };
|
||||
const int magic_num = 66;
|
||||
int client_disconnected = 0;
|
||||
char mbedtls_version[18];
|
||||
extern psa_status_t psa_crypto_call(psa_msg_t msg);
|
||||
extern psa_status_t psa_crypto_close(void);
|
||||
|
||||
#if defined(MBEDTLS_VERSION_C)
|
||||
char mbedtls_version[18];
|
||||
mbedtls_version_get_string_full(mbedtls_version);
|
||||
SERVER_PRINT("%s", mbedtls_version);
|
||||
#endif
|
||||
|
||||
parse_input_args(argc, argv);
|
||||
SERVER_PRINT("Starting");
|
||||
|
Loading…
x
Reference in New Issue
Block a user