Skip to content

Commit 3eea148

Browse files
committed
Move SSL macro checks from TF-PSA-Crypto to Mbed TLS
This commit moves macro checks specifically for Mbed TLS from TF-PSA-Crypto to Mbed TLS where they more approriately belong. Signed-off-by: Harry Ramsey <[email protected]>
1 parent 767aa1d commit 3eea148

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/builtin/src/check_crypto_config.h

-5
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@
128128
#error "PSA_WANT_KEY_TYPE_DH_KEY_PAIR_DERIVE defined, but feature is not supported"
129129
#endif
130130

131-
#if defined(MBEDTLS_SSL_PROTO_TLS1_2) && defined(MBEDTLS_USE_PSA_CRYPTO) && \
132-
!(defined(PSA_WANT_ALG_SHA_1) || defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_512))
133-
#error "MBEDTLS_SSL_PROTO_TLS1_2 defined, but not all prerequisites"
134-
#endif
135-
136131
#if defined(PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS) && \
137132
!defined(PSA_WANT_ALG_SHA_256)
138133
#error "PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS defined, but not all prerequisites"

drivers/builtin/src/psa_util_internal.h

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ extern const mbedtls_error_pair_t psa_to_cipher_errors[4];
6060
extern const mbedtls_error_pair_t psa_to_lms_errors[3];
6161
#endif
6262

63-
#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
64-
extern const mbedtls_error_pair_t psa_to_ssl_errors[7];
65-
#endif
66-
6763
#if defined(PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY) || \
6864
defined(PSA_WANT_KEY_TYPE_RSA_KEY_PAIR_BASIC)
6965
extern const mbedtls_error_pair_t psa_to_pk_rsa_errors[8];

0 commit comments

Comments
 (0)