2021-01-12 15:55:10 +01:00
|
|
|
/*
|
2021-05-28 09:42:25 +02:00
|
|
|
* Query Mbed TLS compile time configurations from mbedtls_config.h
|
2021-01-12 15:55:10 +01:00
|
|
|
*
|
|
|
|
* Copyright The Mbed TLS Contributors
|
2023-11-02 20:47:20 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
2021-01-12 15:55:10 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H
|
|
|
|
#define MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H
|
|
|
|
|
2021-05-27 11:25:03 +02:00
|
|
|
#include "mbedtls/build_info.h"
|
2021-01-12 15:55:10 +01: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 09:42:25 +02:00
|
|
|
* (in MBEDTLS_CONFIG_FILE or mbedtls_config.h),
|
2021-01-12 15:55:10 +01: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 14:50:10 +01:00
|
|
|
int query_config(const char *config);
|
2021-01-12 15:55:10 +01:00
|
|
|
|
2021-12-06 06:40:37 +01: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 14:50:10 +01:00
|
|
|
void list_config(void);
|
2021-12-06 06:40:37 +01:00
|
|
|
|
2021-01-12 15:55:10 +01:00
|
|
|
#endif /* MBEDTLS_PROGRAMS_TEST_QUERY_CONFIG_H */
|