Skip to content

Commit

Permalink
Error translation and init are needed in PSK-only builds as well
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm committed Aug 26, 2024
1 parent 069bccd commit 5047627
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/ssl_tls13_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "psa/crypto.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
* arguments in each translating place. */
static int local_err_translation(psa_status_t status)
Expand All @@ -37,7 +36,6 @@ static int local_err_translation(psa_status_t status)
psa_generic_status_to_mbedtls);
}
#define PSA_TO_MBEDTLS_ERR(status) local_err_translation(status)
#endif

int mbedtls_ssl_tls13_crypto_init(mbedtls_ssl_context *ssl)
{
Expand Down

0 comments on commit 5047627

Please sign in to comment.