config_adjust_ssl.h
build_info.h
aes.h
aria.h
asn1.h
asn1write.h
base64.h
bignum.h
block_cipher.h
build_info.h
camellia.h
ccm.h
chacha20.h
chachapoly.h
cipher.h
cmac.h
config_adjust_ssl.h
ctr_drbg.h
debug.h
des.h
dhm.h
ecdh.h
ecdsa.h
ecjpake.h
ecp.h
entropy.h
error.h
gcm.h
hkdf.h
hmac_drbg.h
lms.h
md.h
md5.h
memory_buffer_alloc.h
net_sockets.h
nist_kw.h
oid.h
pem.h
pk.h
pkcs12.h
pkcs5.h
pkcs7.h
platform.h
platform_time.h
platform_util.h
poly1305.h
psa_util.h
ripemd160.h
rsa.h
sha1.h
sha256.h
sha3.h
sha512.h
ssl.h
ssl_cache.h
ssl_ciphersuites.h
ssl_cookie.h
ssl_ticket.h
threading.h
timing.h
version.h
x509.h
x509_crl.h
x509_crt.h
x509_csr.h
build_info.h
crypto.h
crypto_builtin_composites.h
crypto_builtin_key_derivation.h
crypto_builtin_primitives.h
crypto_driver_common.h
crypto_driver_contexts_composites.h
crypto_driver_contexts_key_derivation.h
crypto_driver_contexts_primitives.h
crypto_extra.h
crypto_platform.h
crypto_se_driver.h
crypto_sizes.h
crypto_struct.h
crypto_types.h
chachapoly_alt.h

Adjust TLS configuration.

This is an internal header. Do not include it directly.

Automatically enable certain dependencies. Generally, MBEDTLS_xxx configurations need to be explicitly enabled by the user: enabling MBEDTLS_xxx_A but not MBEDTLS_xxx_B when A requires B results in a compilation error. However, we do automatically enable certain options in some circumstances. One case is if MBEDTLS_xxx_B is an internal option used to identify parts of a module that are used by other module, and we don't want to make the symbol MBEDTLS_xxx_B part of the public API. Another case is if A didn't depend on B in earlier versions, and we want to use B in A but we need to preserve backward compatibility with configurations that explicitly activate MBEDTLS_xxx_A but not MBEDTLS_xxx_B.

    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */

    #ifndefMBEDTLS_CONFIG_ADJUST_SSL_H
    #defineMBEDTLS_CONFIG_ADJUST_SSL_H

    #if!defined(MBEDTLS_CONFIG_FILES_READ)
    #error"Donotincludembedtls/config_adjust_*.hmanually!Thiscanleadtoproblems,"\
    "uptoandincludingruntimeerrorssuchasbufferoverflows."\
    "Ifyou'retryingtofixacomplaintfromcheck_config.h,justremove"\
    "itfromyourconfigurationfile:sinceMbedTLS3.0,itisincluded"\
    "automaticallyattherightpoint."
    #endif/**/

    /*ThefollowingblocksmakeiteasiertodisableallofTLS,
    *orofTLS1.2or1.3orDTLS,withouthavingtomanuallydisableall
    *keyexchanges,optionsandextensionsrelatedtothem.*/

    #if!defined(MBEDTLS_SSL_TLS_C)
    #undefMBEDTLS_SSL_CLI_C
    #undefMBEDTLS_SSL_SRV_C
    #undefMBEDTLS_SSL_PROTO_TLS1_3
    #undefMBEDTLS_SSL_PROTO_TLS1_2
    #undefMBEDTLS_SSL_PROTO_DTLS
    #endif

    #if!(defined(MBEDTLS_SSL_SRV_C)&&defined(MBEDTLS_SSL_SESSION_TICKETS))
    #undefMBEDTLS_SSL_TICKET_C
    #endif

    #if!defined(MBEDTLS_SSL_PROTO_DTLS)
    #undefMBEDTLS_SSL_DTLS_ANTI_REPLAY
    #undefMBEDTLS_SSL_DTLS_CONNECTION_ID
    #undefMBEDTLS_SSL_DTLS_CONNECTION_ID_COMPAT
    #undefMBEDTLS_SSL_DTLS_HELLO_VERIFY
    #undefMBEDTLS_SSL_DTLS_SRTP
    #undefMBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE
    #endif

    #if!defined(MBEDTLS_SSL_PROTO_TLS1_2)
    #undefMBEDTLS_SSL_ENCRYPT_THEN_MAC
    #undefMBEDTLS_SSL_EXTENDED_MASTER_SECRET
    #undefMBEDTLS_SSL_RENEGOTIATION
    #undefMBEDTLS_KEY_EXCHANGE_RSA_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_PSK_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
    #undefMBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
    #endif

    #if!defined(MBEDTLS_SSL_PROTO_TLS1_3)
    #undefMBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
    #undefMBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_EPHEMERAL_ENABLED
    #undefMBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_EPHEMERAL_ENABLED
    #undefMBEDTLS_SSL_EARLY_DATA
    #undefMBEDTLS_SSL_RECORD_SIZE_LIMIT
    #endif

    #ifdefined(MBEDTLS_SSL_PROTO_TLS1_2)&&\
    (defined(MBEDTLS_ECDH_C)||defined(MBEDTLS_ECDSA_C)||\
    defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED))
    #defineMBEDTLS_SSL_TLS1_2_SOME_ECC
    #endif

    #endif/*MBEDTLS_CONFIG_ADJUST_SSL_H*/