Merge pull request #5439 from SebastianBoe/mbedtls-2.28_check_config

Backport 2.28: Add missing config check for PKCS5.
This commit is contained in:
Gilles Peskine 2022-01-22 00:52:18 +01:00 committed by GitHub
commit bf62325c9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,6 +176,10 @@
#error "MBEDTLS_PK_PARSE_C defined, but not all prerequesites"
#endif
#if defined(MBEDTLS_PKCS5_C) && !defined(MBEDTLS_MD_C)
#error "MBEDTLS_PKCS5_C defined, but not all prerequesites"
#endif
#if defined(MBEDTLS_ENTROPY_C) && (!defined(MBEDTLS_SHA512_C) && \
!defined(MBEDTLS_SHA256_C))
#error "MBEDTLS_ENTROPY_C defined, but not all prerequisites"