Gilles Peskine | dc720b0 | 2023-09-04 17:50:28 +0200 | [diff] [blame] | 1 | /** |
| 2 | * \file mbedtls/config_adjust_x509.h |
| 3 | * \brief Adjust X.509 configuration |
| 4 | * |
Gilles Peskine | e0ec8f5 | 2024-04-26 14:18:10 +0200 | [diff] [blame] | 5 | * This is an internal header. Do not include it directly. |
| 6 | * |
Wenxing Hou | 848bccf | 2024-06-19 11:04:13 +0800 | [diff] [blame] | 7 | * Automatically enable certain dependencies. Generally, MBEDTLS_xxx |
Gilles Peskine | dc720b0 | 2023-09-04 17:50:28 +0200 | [diff] [blame] | 8 | * configurations need to be explicitly enabled by the user: enabling |
| 9 | * MBEDTLS_xxx_A but not MBEDTLS_xxx_B when A requires B results in a |
| 10 | * compilation error. However, we do automatically enable certain options |
| 11 | * in some circumstances. One case is if MBEDTLS_xxx_B is an internal option |
| 12 | * used to identify parts of a module that are used by other module, and we |
| 13 | * don't want to make the symbol MBEDTLS_xxx_B part of the public API. |
| 14 | * Another case is if A didn't depend on B in earlier versions, and we |
| 15 | * want to use B in A but we need to preserve backward compatibility with |
| 16 | * configurations that explicitly activate MBEDTLS_xxx_A but not |
| 17 | * MBEDTLS_xxx_B. |
| 18 | */ |
| 19 | /* |
| 20 | * Copyright The Mbed TLS Contributors |
Dave Rodgman | 16799db | 2023-11-02 19:47:20 +0000 | [diff] [blame] | 21 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Gilles Peskine | dc720b0 | 2023-09-04 17:50:28 +0200 | [diff] [blame] | 22 | */ |
| 23 | |
| 24 | #ifndef MBEDTLS_CONFIG_ADJUST_X509_H |
| 25 | #define MBEDTLS_CONFIG_ADJUST_X509_H |
| 26 | |
Gilles Peskine | 66b2742 | 2024-05-16 14:46:09 +0200 | [diff] [blame] | 27 | #if !defined(MBEDTLS_CONFIG_FILES_READ) |
| 28 | #error "Do not include mbedtls/config_adjust_*.h manually! This can lead to problems, " \ |
| 29 | "up to and including runtime errors such as buffer overflows. " \ |
| 30 | "If you're trying to fix a complaint from check_config.h, just remove " \ |
| 31 | "it from your configuration file: since Mbed TLS 3.0, it is included " \ |
Gilles Peskine | d537799 | 2024-05-29 09:33:04 +0200 | [diff] [blame] | 32 | "automatically at the right point." |
Gilles Peskine | 66b2742 | 2024-05-16 14:46:09 +0200 | [diff] [blame] | 33 | #endif /* */ |
| 34 | |
Gilles Peskine | dc720b0 | 2023-09-04 17:50:28 +0200 | [diff] [blame] | 35 | #endif /* MBEDTLS_CONFIG_ADJUST_X509_H */ |