mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 16:45:37 +00:00
Remove dependency of MBEDTLS_X509_USE_C on MBEDTLS_BIGNUM_C
There is no apparent direct dependency, and the indirect dependency through the RSA and legacy ECP modules is already encoded in the chain MBEDTLS_X509_USE_C -> MBEDTLS_PK_PARSE_C -> MBEDTLS_PK_C -> MBEDTLS_RSA_C || MBEDTLS_ECP_C -> MBEDTLS_BIGNUM_C which will be modified to MBEDTLS_X509_USE_C -> MBEDTLS_PK_PARSE_C -> MBEDTLS_PK_C -> MBEDTLS_RSA_C || MBEDTLS_ECP_C || MBEDTLS_USE_TINYCRYPT in which case MBEDTLS_BIGNUM_C is not needed for MBEDTLS_X509_USE_C if only MBEDTLS_USE_TINYCRYPT is set, but not MBEDTLS_RSA_C or MBEDTLS_ECP_C.
This commit is contained in:
parent
d82f60da36
commit
61b05e572b
|
@ -785,9 +785,10 @@
|
||||||
#error "MBEDTLS_VERSION_FEATURES defined, but not all prerequisites"
|
#error "MBEDTLS_VERSION_FEATURES defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_USE_C) && ( !defined(MBEDTLS_BIGNUM_C) || \
|
#if defined(MBEDTLS_X509_USE_C) && \
|
||||||
!defined(MBEDTLS_OID_C) || !defined(MBEDTLS_ASN1_PARSE_C) || \
|
( !defined(MBEDTLS_OID_C) || \
|
||||||
!defined(MBEDTLS_PK_PARSE_C) )
|
!defined(MBEDTLS_ASN1_PARSE_C) || \
|
||||||
|
!defined(MBEDTLS_PK_PARSE_C) )
|
||||||
#error "MBEDTLS_X509_USE_C defined, but not all prerequisites"
|
#error "MBEDTLS_X509_USE_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue