1 /* 2 * Query Mbed TLS compile time configurations from mbedtls_config.h 3 * 4 * Copyright The Mbed TLS Contributors 5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 6 */ 7 8 #ifndef MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H 9 #define MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H 10 11 #include "mbedtls/build_info.h" 12 13 /** Check whether a given configuration symbol is enabled. 14 * 15 * \param config The symbol to query (e.g. "MBEDTLS_RSA_C"). 16 * \return \c 0 if the symbol was defined at compile time 17 * (in MBEDTLS_CONFIG_FILE or mbedtls_config.h), 18 * \c 1 otherwise. 19 * 20 * \note This function is defined in `programs/test/query_config.c` 21 * which is automatically generated by 22 * `scripts/generate_query_config.pl`. 23 */ 24 int query_config(const char *config); 25 26 /** List all enabled configuration symbols 27 * 28 * \note This function is defined in `programs/test/query_config.c` 29 * which is automatically generated by 30 * `scripts/generate_query_config.pl`. 31 */ 32 void list_config(void); 33 34 #endif /* MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H */ 35