mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Rename config.h to mbedtls_config.h
This commit was generated using the following script: # ======================== #!/bin/sh git ls-files | grep -v '^ChangeLog' | xargs sed -b -E -i ' s/((check|crypto|full|mbedtls|query)_config)\.h/\1\nh/g s/config\.h/mbedtls_config.h/g y/\n/./ ' mv include/mbedtls/config.h include/mbedtls/mbedtls_config.h # ======================== Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
@ -153,12 +153,12 @@ psa/psa_constant_names_generated.c:
|
||||
$(PYTHON) ../scripts/generate_psa_constants.py
|
||||
|
||||
test/query_config.c: ../scripts/generate_query_config.pl
|
||||
## The generated file only depends on the options that are present in config.h,
|
||||
## The generated file only depends on the options that are present in mbedtls_config.h,
|
||||
## not on which options are set. To avoid regenerating this file all the time
|
||||
## when switching between configurations, don't declare config.h as a
|
||||
## when switching between configurations, don't declare mbedtls_config.h as a
|
||||
## dependency. Remove this file from your working tree if you've just added or
|
||||
## removed an option in config.h.
|
||||
#test/query_config.c: ../include/mbedtls/config.h
|
||||
## removed an option in mbedtls_config.h.
|
||||
#test/query_config.c: ../include/mbedtls/mbedtls_config.h
|
||||
test/query_config.c: ../scripts/data_files/query_config.fmt
|
||||
test/query_config.c:
|
||||
echo " Gen $@"
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
/* Enable definition of fileno() even when compiling with -std=c99. Must be
|
||||
* set before config.h, which pulls in glibc's features.h indirectly.
|
||||
* set before mbedtls_config.h, which pulls in glibc's features.h indirectly.
|
||||
* Harmless on other platforms. */
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* This file doesn't use any Mbed TLS function, but grab config.h anyway
|
||||
/* This file doesn't use any Mbed TLS function, but grab mbedtls_config.h anyway
|
||||
* in case it contains platform-specific #defines related to malloc or
|
||||
* stdio functions. */
|
||||
#include "mbedtls/build_info.h"
|
||||
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
/* Enable definition of gethostname() even when compiling with -std=c99. Must
|
||||
* be set before config.h, which pulls in glibc's features.h indirectly.
|
||||
* be set before mbedtls_config.h, which pulls in glibc's features.h indirectly.
|
||||
* Harmless on other platforms. */
|
||||
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Query Mbed TLS compile time configurations from config.h
|
||||
* Query Mbed TLS compile time configurations from mbedtls_config.h
|
||||
*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
@ -26,7 +26,7 @@
|
||||
*
|
||||
* \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),
|
||||
* (in MBEDTLS_CONFIG_FILE or mbedtls_config.h),
|
||||
* \c 1 otherwise.
|
||||
*
|
||||
* \note This function is defined in `programs/test/query_config.c`
|
||||
|
Reference in New Issue
Block a user