mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 05:42:35 +00:00
Move preprocessor logic to build_info.h
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
c662b36af2
commit
c5c9eb4741
@ -29,8 +29,6 @@
|
|||||||
*
|
*
|
||||||
* See README.txt for usage instructions.
|
* See README.txt for usage instructions.
|
||||||
*/
|
*/
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
#define MBEDTLS_CONFIG_H
|
|
||||||
|
|
||||||
/* System support */
|
/* System support */
|
||||||
//#define MBEDTLS_HAVE_TIME /* Optionally used in Hello messages */
|
//#define MBEDTLS_HAVE_TIME /* Optionally used in Hello messages */
|
||||||
@ -85,7 +83,3 @@
|
|||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_IN_CONTENT_LEN 1024
|
#define MBEDTLS_SSL_IN_CONTENT_LEN 1024
|
||||||
#define MBEDTLS_SSL_OUT_CONTENT_LEN 1024
|
#define MBEDTLS_SSL_OUT_CONTENT_LEN 1024
|
||||||
|
|
||||||
#include "mbedtls/check_config.h"
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
@ -29,9 +29,6 @@
|
|||||||
* See README.txt for usage instructions.
|
* See README.txt for usage instructions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
#define MBEDTLS_CONFIG_H
|
|
||||||
|
|
||||||
/* System support */
|
/* System support */
|
||||||
#define MBEDTLS_HAVE_ASM
|
#define MBEDTLS_HAVE_ASM
|
||||||
#define MBEDTLS_HAVE_TIME
|
#define MBEDTLS_HAVE_TIME
|
||||||
@ -86,7 +83,3 @@
|
|||||||
|
|
||||||
/* Miscellaneous options */
|
/* Miscellaneous options */
|
||||||
#define MBEDTLS_AES_ROM_TABLES
|
#define MBEDTLS_AES_ROM_TABLES
|
||||||
|
|
||||||
#include "mbedtls/check_config.h"
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
@ -33,9 +33,6 @@
|
|||||||
* See README.txt for usage instructions.
|
* See README.txt for usage instructions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
#define MBEDTLS_CONFIG_H
|
|
||||||
|
|
||||||
/* System support */
|
/* System support */
|
||||||
#define MBEDTLS_HAVE_ASM
|
#define MBEDTLS_HAVE_ASM
|
||||||
#define MBEDTLS_HAVE_TIME
|
#define MBEDTLS_HAVE_TIME
|
||||||
@ -113,7 +110,3 @@
|
|||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_IN_CONTENT_LEN 1024
|
#define MBEDTLS_SSL_IN_CONTENT_LEN 1024
|
||||||
#define MBEDTLS_SSL_OUT_CONTENT_LEN 1024
|
#define MBEDTLS_SSL_OUT_CONTENT_LEN 1024
|
||||||
|
|
||||||
#include "mbedtls/check_config.h"
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
#define MBEDTLS_CONFIG_H
|
|
||||||
|
|
||||||
/* System support */
|
/* System support */
|
||||||
//#define MBEDTLS_HAVE_ASM
|
//#define MBEDTLS_HAVE_ASM
|
||||||
#define MBEDTLS_HAVE_TIME
|
#define MBEDTLS_HAVE_TIME
|
||||||
@ -90,9 +87,3 @@
|
|||||||
//#define MBEDTLS_THREADING_C
|
//#define MBEDTLS_THREADING_C
|
||||||
#define MBEDTLS_TIMING_C
|
#define MBEDTLS_TIMING_C
|
||||||
#define MBEDTLS_VERSION_C
|
#define MBEDTLS_VERSION_C
|
||||||
|
|
||||||
#include "mbedtls/config_psa.h"
|
|
||||||
|
|
||||||
#include "check_config.h"
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
@ -32,9 +32,6 @@
|
|||||||
* See README.txt for usage instructions.
|
* See README.txt for usage instructions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
#define MBEDTLS_CONFIG_H
|
|
||||||
|
|
||||||
/* System support */
|
/* System support */
|
||||||
#define MBEDTLS_HAVE_ASM
|
#define MBEDTLS_HAVE_ASM
|
||||||
|
|
||||||
@ -89,7 +86,3 @@
|
|||||||
|
|
||||||
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
|
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
|
||||||
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
|
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8
|
||||||
|
|
||||||
#include "mbedtls/check_config.h"
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
@ -26,10 +26,29 @@
|
|||||||
#ifndef MBEDTLS_BUILD_INFO_H
|
#ifndef MBEDTLS_BUILD_INFO_H
|
||||||
#define MBEDTLS_BUILD_INFO_H
|
#define MBEDTLS_BUILD_INFO_H
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
#include "mbedtls/config.h"
|
||||||
#else
|
#else
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Target and application specific configurations
|
||||||
|
*
|
||||||
|
* Allow user to override any previous default.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#if defined(MBEDTLS_USER_CONFIG_FILE)
|
||||||
|
#include MBEDTLS_USER_CONFIG_FILE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
|
||||||
|
#include "mbedtls/config_psa.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "mbedtls/check_config.h"
|
||||||
|
|
||||||
#endif /* MBEDTLS_BUILD_INFO_H */
|
#endif /* MBEDTLS_BUILD_INFO_H */
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
#define MBEDTLS_CONFIG_H
|
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
|
||||||
#define _CRT_SECURE_NO_DEPRECATE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \name SECTION: System support
|
* \name SECTION: System support
|
||||||
*
|
*
|
||||||
@ -3263,20 +3256,3 @@
|
|||||||
//#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
//#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
||||||
|
|
||||||
/* \} name SECTION: Customisation configuration options */
|
/* \} name SECTION: Customisation configuration options */
|
||||||
|
|
||||||
/* Target and application specific configurations
|
|
||||||
*
|
|
||||||
* Allow user to override any previous default.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#if defined(MBEDTLS_USER_CONFIG_FILE)
|
|
||||||
#include MBEDTLS_USER_CONFIG_FILE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
|
|
||||||
#include "mbedtls/config_psa.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "mbedtls/check_config.h"
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MBEDTLS_CONFIG_H
|
|
||||||
/* Don't #define MBEDTLS_CONFIG_H, let config.h do it. */
|
|
||||||
|
|
||||||
#include "mbedtls/config.h"
|
#include "mbedtls/config.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -33,5 +30,3 @@ static inline void *custom_calloc( size_t nmemb, size_t size )
|
|||||||
|
|
||||||
#define MBEDTLS_PLATFORM_MEMORY
|
#define MBEDTLS_PLATFORM_MEMORY
|
||||||
#define MBEDTLS_PLATFORM_STD_CALLOC custom_calloc
|
#define MBEDTLS_PLATFORM_STD_CALLOC custom_calloc
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user