mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-05 18:40:01 +00:00
Error translation and init are needed in PSK-only builds as well
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
069bccdf78
commit
50476272a9
@ -27,7 +27,6 @@
|
|||||||
#include "psa/crypto.h"
|
#include "psa/crypto.h"
|
||||||
#include "psa_util_internal.h"
|
#include "psa_util_internal.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED)
|
|
||||||
/* Define a local translating function to save code size by not using too many
|
/* Define a local translating function to save code size by not using too many
|
||||||
* arguments in each translating place. */
|
* arguments in each translating place. */
|
||||||
static int local_err_translation(psa_status_t status)
|
static int local_err_translation(psa_status_t status)
|
||||||
@ -37,7 +36,6 @@ static int local_err_translation(psa_status_t status)
|
|||||||
psa_generic_status_to_mbedtls);
|
psa_generic_status_to_mbedtls);
|
||||||
}
|
}
|
||||||
#define PSA_TO_MBEDTLS_ERR(status) local_err_translation(status)
|
#define PSA_TO_MBEDTLS_ERR(status) local_err_translation(status)
|
||||||
#endif
|
|
||||||
|
|
||||||
int mbedtls_ssl_tls13_crypto_init(mbedtls_ssl_context *ssl)
|
int mbedtls_ssl_tls13_crypto_init(mbedtls_ssl_context *ssl)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user