Reduce code size when mbedtls_x509_*_info() unused
Introduce MBEDTLS_X509_INFO to indicate the availability of the mbedtls_x509_*_info() function and closely related APIs. When this is not defined, also omit name and description from mbedtls_oid_descriptor_t, and omit OID arrays, macros, and types that are entirely unused. This saves several KB of code space. Change-Id: I056312613379890e0d70e1d08c34171287c0aa17
This commit is contained in:
parent
1abb159e90
commit
dc470ae8af
27 changed files with 273 additions and 150 deletions
|
@ -540,6 +540,9 @@ static const char *features[] = {
|
|||
#if defined(MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE)
|
||||
"MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE",
|
||||
#endif /* MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE */
|
||||
#if defined(MBEDTLS_X509_INFO)
|
||||
"MBEDTLS_X509_INFO",
|
||||
#endif /* MBEDTLS_X509_INFO */
|
||||
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
|
||||
"MBEDTLS_X509_RSASSA_PSS_SUPPORT",
|
||||
#endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue