Skip to content

Commit 2f24831

Browse files
valeriosetticarlescufi
authored andcommitted
md: fix guards for mbedtls_md_error_from_psa
This commit add a fix that was added to Mbed TLS in PRs 9073 and backported to mbedtls-3.6 branch with PR 9090. Signed-off-by: Valerio Setti <[email protected]>
1 parent c0cb49f commit 2f24831

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/md.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include "mbedtls/sha512.h"
4242
#include "mbedtls/sha3.h"
4343

44-
#if defined(MBEDTLS_PSA_CRYPTO_C)
44+
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
4545
#include <psa/crypto.h>
4646
#include "md_psa.h"
4747
#include "psa_util_internal.h"
@@ -761,13 +761,13 @@ mbedtls_md_type_t mbedtls_md_get_type(const mbedtls_md_info_t *md_info)
761761
return md_info->type;
762762
}
763763

764-
#if defined(MBEDTLS_PSA_CRYPTO_C)
764+
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
765765
int mbedtls_md_error_from_psa(psa_status_t status)
766766
{
767767
return PSA_TO_MBEDTLS_ERR_LIST(status, psa_to_md_errors,
768768
psa_generic_status_to_mbedtls);
769769
}
770-
#endif /* MBEDTLS_PSA_CRYPTO_C */
770+
#endif /* MBEDTLS_PSA_CRYPTO_CLIENT */
771771

772772

773773
/************************************************************************

0 commit comments

Comments
 (0)