mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 09:55:46 +01:00
ssl_test_lib: move declaration of query_config
Move from ssl_*2.c to ssl_test_lib.h: * The declaration of query_config(). Also document it. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
67638d6828
commit
7f679c7bf4
@ -521,8 +521,6 @@ struct options
|
||||
const char *mki; /* The dtls mki value to use */
|
||||
} opt;
|
||||
|
||||
int query_config( const char *config );
|
||||
|
||||
#if defined(MBEDTLS_SSL_EXPORT_KEYS)
|
||||
typedef struct eap_tls_keys
|
||||
{
|
||||
|
@ -624,8 +624,6 @@ struct options
|
||||
int support_mki; /* The dtls mki mki support */
|
||||
} opt;
|
||||
|
||||
int query_config( const char *config );
|
||||
|
||||
#if defined(MBEDTLS_SSL_EXPORT_KEYS)
|
||||
typedef struct eap_tls_keys
|
||||
{
|
||||
|
@ -83,6 +83,19 @@
|
||||
|
||||
#include <test/helpers.h>
|
||||
|
||||
/** 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
|
||||
* (in MBEDTLS_CONFIG_FILE or config.h),
|
||||
* \c 1 otherwise.
|
||||
*
|
||||
* \note This function is defined in `programs/test/query_config.c`
|
||||
* which is automatically generated by
|
||||
* `scripts/generate_query_config.pl`.
|
||||
*/
|
||||
int query_config( const char *config );
|
||||
|
||||
#endif /* MBEDTLS_SSL_TEST_IMPOSSIBLE conditions: else */
|
||||
|
||||
#endif /* MBEDTLS_PROGRAMS_SSL_SSL_TEST_LIB_H */
|
||||
|
Loading…
Reference in New Issue
Block a user