2021-01-12 14:55:10 +00:00
|
|
|
/*
|
2021-05-28 07:42:25 +00:00
|
|
|
* Query Mbed TLS compile time configurations from mbedtls_config.h
|
2021-01-12 14:55:10 +00:00
|
|
|
*
|
|
|
|
* Copyright The Mbed TLS Contributors
|
2023-11-02 19:47:20 +00:00
|
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
2021-01-12 14:55:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H
|
|
|
|
#define MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H
|
|
|
|
|
2021-05-27 09:25:03 +00:00
|
|
|
#include "mbedtls/build_info.h"
|
2021-01-12 14:55:10 +00:00
|
|
|
|
|
|
|
/** Check whether a given configuration symbol is enabled.
|
|
|
|
*
|
|
|
|
* \param config The symbol to query (e.g. "MBEDTLS_RSA_C").
|
|
|
|
* \return \c 0 if the symbol was defined at compile time
|
2021-05-28 07:42:25 +00:00
|
|
|
* (in MBEDTLS_CONFIG_FILE or mbedtls_config.h),
|
2021-01-12 14:55:10 +00:00
|
|
|
* \c 1 otherwise.
|
|
|
|
*
|
|
|
|
* \note This function is defined in `programs/test/query_config.c`
|
|
|
|
* which is automatically generated by
|
|
|
|
* `scripts/generate_query_config.pl`.
|
|
|
|
*/
|
2023-01-11 13:50:10 +00:00
|
|
|
int query_config(const char *config);
|
2021-01-12 14:55:10 +00:00
|
|
|
|
2021-12-06 05:40:37 +00:00
|
|
|
/** List all enabled configuration symbols
|
|
|
|
*
|
|
|
|
* \note This function is defined in `programs/test/query_config.c`
|
|
|
|
* which is automatically generated by
|
|
|
|
* `scripts/generate_query_config.pl`.
|
|
|
|
*/
|
2023-01-11 13:50:10 +00:00
|
|
|
void list_config(void);
|
2021-12-06 05:40:37 +00:00
|
|
|
|
2021-01-12 14:55:10 +00:00
|
|
|
#endif /* MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H */
|