mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-03 00:30:17 +02:00
- always print ERROR and FATAL messages because they should never occur, but when they do it's important to see them immediately; - keep INFO prints under DEBUG guard; - set client's PRINT as INFO message because otherwise it will mess test_suites's output; - change some error messages from INFO to ERROR because that's what they are. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
24 lines
473 B
C
24 lines
473 B
C
/* psasim test client */
|
|
|
|
/*
|
|
* Copyright The Mbed TLS Contributors
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
*/
|
|
|
|
/* Includes from mbedtls */
|
|
#include "psa/crypto.h"
|
|
#include "util.h"
|
|
|
|
int main()
|
|
{
|
|
/* psa_crypto_init() connects to the server */
|
|
psa_status_t status = psa_crypto_init();
|
|
if (status != PSA_SUCCESS) {
|
|
ERROR("psa_crypto_init returned %d", status);
|
|
return 1;
|
|
}
|
|
|
|
mbedtls_psa_crypto_free();
|
|
return 0;
|
|
}
|