diff options
Diffstat (limited to 'thirdparty/mbedtls/include/godot_module_mbedtls_config.h')
-rw-r--r-- | thirdparty/mbedtls/include/godot_module_mbedtls_config.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/thirdparty/mbedtls/include/godot_module_mbedtls_config.h b/thirdparty/mbedtls/include/godot_module_mbedtls_config.h index c35f158041..aed276766f 100644 --- a/thirdparty/mbedtls/include/godot_module_mbedtls_config.h +++ b/thirdparty/mbedtls/include/godot_module_mbedtls_config.h @@ -41,18 +41,34 @@ #else // Include default mbedTLS config. -#include <mbedtls/config.h> +#include <mbedtls/mbedtls_config.h> // Disable weak cryptography. #undef MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED #undef MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED -#undef MBEDTLS_SSL_CBC_RECORD_SPLITTING -#undef MBEDTLS_SSL_PROTO_TLS1 -#undef MBEDTLS_SSL_PROTO_TLS1_1 -#undef MBEDTLS_ARC4_C #undef MBEDTLS_DES_C #undef MBEDTLS_DHM_C +#ifndef __linux__ +// ARMv8 hardware AES operations. Detection only possible on linux. +#undef MBEDTLS_AESCE_C +#endif + +// Disable deprecated +#define MBEDTLS_DEPRECATED_REMOVED + +// mbedTLS 3.6 finally enabled TLSv1.3 by default, but it requires some mobule +// changes, and to enable PSA crypto (new "standard" API specification). +// Disable it for now. +#undef MBEDTLS_SSL_PROTO_TLS1_3 + +// Disable PSA Crypto. +#undef MBEDTLS_PSA_CRYPTO_CONFIG +#undef MBEDTLS_PSA_CRYPTO_C +#undef MBEDTLS_PSA_CRYPTO_STORAGE_C +#undef MBEDTLS_PSA_ITS_FILE_C +#undef MBEDTLS_LMS_C + #endif // GODOT_MBEDTLS_INCLUDE_H #endif // GODOT_MODULE_MBEDTLS_CONFIG_H |