mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-19 18:39:55 +00:00
Address review comment
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
This commit is contained in:
parent
05fe6e472e
commit
feb105c042
@ -832,18 +832,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* TLS 1.2 and 1.3 require SHA-256 or SHA-384 (running handshake hash) */
|
/* TLS 1.2 and 1.3 require SHA-256 or SHA-384 (running handshake hash) */
|
||||||
#if defined(MBEDTLS_SSL_TLS_C)
|
#if defined(MBEDTLS_SSL_TLS_C) && \
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
|
||||||
#if !(defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_384))
|
|
||||||
#error "MBEDTLS_SSL_TLS_C defined, but not all prerequisites"
|
|
||||||
#endif
|
|
||||||
#else /* MBEDTLS_USE_PSA_CRYPTO */
|
|
||||||
#if !defined(MBEDTLS_MD_C) || \
|
|
||||||
!(defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_384))
|
!(defined(PSA_WANT_ALG_SHA_256) || defined(PSA_WANT_ALG_SHA_384))
|
||||||
#error "MBEDTLS_SSL_TLS_C defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_TLS_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
|
||||||
#endif /* MBEDTLS_SSL_TLS_C */
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_SRV_C) && !defined(MBEDTLS_SSL_TLS_C)
|
#if defined(MBEDTLS_SSL_SRV_C) && !defined(MBEDTLS_SSL_TLS_C)
|
||||||
#error "MBEDTLS_SSL_SRV_C defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_SRV_C defined, but not all prerequisites"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user