Mbed TLS v4.1.1
Loading...
Searching...
No Matches
include/mbedtls/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 OR GPL-2.0-or-later
12 */
13
14#ifndef MBEDTLS_BUILD_INFO_H
15#define MBEDTLS_BUILD_INFO_H
16
18
19/*
20 * This set of compile-time defines can be used to determine the version number
21 * of the Mbed TLS library used. Run-time variables for the same can be found in
22 * version.h
23 */
24
29#define MBEDTLS_VERSION_MAJOR 4
30#define MBEDTLS_VERSION_MINOR 1
31#define MBEDTLS_VERSION_PATCH 1
32
38#define MBEDTLS_VERSION_NUMBER 0x04010100
39#define MBEDTLS_VERSION_STRING "4.1.1"
40#define MBEDTLS_VERSION_STRING_FULL "Mbed TLS 4.1.1"
41
42#if defined(MBEDTLS_CONFIG_FILES_READ)
43#error "Something went wrong: MBEDTLS_CONFIG_FILES_READ defined before reading the config files!"
44#endif
45#if defined(MBEDTLS_CONFIG_IS_FINALIZED)
46#error "Something went wrong: MBEDTLS_CONFIG_IS_FINALIZED defined before reading the config files!"
47#endif
48
49/* X.509 and TLS configuration */
50#if !defined(MBEDTLS_CONFIG_FILE)
52#else
53#include MBEDTLS_CONFIG_FILE
54#endif
55
56#if defined(MBEDTLS_CONFIG_VERSION) && ( \
57 MBEDTLS_CONFIG_VERSION < 0x04000000 || \
58 MBEDTLS_CONFIG_VERSION > MBEDTLS_VERSION_NUMBER)
59#error "Invalid config version, defined value of MBEDTLS_CONFIG_VERSION is unsupported"
60#endif
61
62/* Target and application specific configurations
63 *
64 * Allow user to override any previous default.
65 *
66 */
67#if defined(MBEDTLS_USER_CONFIG_FILE)
68#include MBEDTLS_USER_CONFIG_FILE
69#endif
70
71/* For the sake of consistency checks in mbedtls_config.c */
72#if defined(MBEDTLS_INCLUDE_AFTER_RAW_CONFIG)
73#include MBEDTLS_INCLUDE_AFTER_RAW_CONFIG
74#endif
75
76/* Indicate that all configuration files have been read.
77 * It is now time to adjust the configuration (follow through on dependencies,
78 * make PSA and legacy crypto consistent, etc.).
79 */
80#define MBEDTLS_CONFIG_FILES_READ
81
83
85
86/* Indicate that all configuration symbols are set,
87 * even the ones that are calculated programmatically.
88 * It is now safe to query the configuration (to check it, to size buffers,
89 * etc.).
90 */
91#define MBEDTLS_CONFIG_IS_FINALIZED
92
93#endif /* MBEDTLS_BUILD_INFO_H */
Adjust TLS configuration.
Adjust X.509 configuration.
Configuration options (set of defines).
Build-time configuration info.