mbed TLS v3.1.0
build_info.h
Go to the documentation of this file.
1 
9  /*
10  * Copyright The Mbed TLS Contributors
11  * SPDX-License-Identifier: Apache-2.0
12  *
13  * Licensed under the Apache License, Version 2.0 (the "License"); you may
14  * not use this file except in compliance with the License.
15  * You may obtain a copy of the License at
16  *
17  * http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
21  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  */
25 
26 #ifndef MBEDTLS_BUILD_INFO_H
27 #define MBEDTLS_BUILD_INFO_H
28 
29 /*
30  * This set of compile-time defines can be used to determine the version number
31  * of the Mbed TLS library used. Run-time variables for the same can be found in
32  * version.h
33  */
34 
39 #define MBEDTLS_VERSION_MAJOR 3
40 #define MBEDTLS_VERSION_MINOR 1
41 #define MBEDTLS_VERSION_PATCH 0
42 
48 #define MBEDTLS_VERSION_NUMBER 0x03010000
49 #define MBEDTLS_VERSION_STRING "3.1.0"
50 #define MBEDTLS_VERSION_STRING_FULL "mbed TLS 3.1.0"
51 
52 #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
53 #define _CRT_SECURE_NO_DEPRECATE 1
54 #endif
55 
56 #if !defined(MBEDTLS_CONFIG_FILE)
57 #ifdef _RTE_
58 #include "mbedTLS_config_wrapper.h"
59 #else
60 #include "mbedtls/mbedtls_config.h"
61 #endif
62 #else
63 #include MBEDTLS_CONFIG_FILE
64 #endif
65 
66 #if defined(MBEDTLS_CONFIG_VERSION) && ( \
67  MBEDTLS_CONFIG_VERSION < 0x03000000 || \
68  MBEDTLS_CONFIG_VERSION > MBEDTLS_VERSION_NUMBER )
69 #error "Invalid config version, defined value of MBEDTLS_CONFIG_VERSION is unsupported"
70 #endif
71 
72 /* Target and application specific configurations
73  *
74  * Allow user to override any previous default.
75  *
76  */
77 #if defined(MBEDTLS_USER_CONFIG_FILE)
78 #include MBEDTLS_USER_CONFIG_FILE
79 #endif
80 
81 #if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
82 #include "mbedtls/config_psa.h"
83 #endif
84 
85 #include "mbedtls/check_config.h"
86 
87 #endif /* MBEDTLS_BUILD_INFO_H */
Consistency checks for configuration options.
Configuration options (set of defines)
PSA crypto configuration options (set of defines)