mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-08-09 05:31:08 +00:00
Disable non-portable things
Ie things that won't build or work with mbed OS as is.
This commit is contained in:
parent
0d2dda59c2
commit
7c257cab05
|
@ -42,8 +42,8 @@ endif(CMAKE_BUILD_TYPE STREQUAL "Coverage")
|
||||||
option(USE_PKCS11_HELPER_LIBRARY "Build mbed TLS with the pkcs11-helper library." OFF)
|
option(USE_PKCS11_HELPER_LIBRARY "Build mbed TLS with the pkcs11-helper library." OFF)
|
||||||
|
|
||||||
option(ENABLE_ZLIB_SUPPORT "Build mbed TLS with zlib library." OFF)
|
option(ENABLE_ZLIB_SUPPORT "Build mbed TLS with zlib library." OFF)
|
||||||
option(ENABLE_PROGRAMS "Build mbed TLS programs." ON)
|
option(ENABLE_PROGRAMS "Build mbed TLS programs." OFF)
|
||||||
option(ENABLE_TESTING "Build mbed TLS tests." ON)
|
option(ENABLE_TESTING "Build mbed TLS tests." OFF)
|
||||||
|
|
||||||
if(ENABLE_TESTING)
|
if(ENABLE_TESTING)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
*
|
*
|
||||||
* Comment to disable the use of assembly code.
|
* Comment to disable the use of assembly code.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_HAVE_ASM
|
//#define MBEDTLS_HAVE_ASM
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_HAVE_SSE2
|
* \def MBEDTLS_HAVE_SSE2
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
*
|
*
|
||||||
* Comment if your system does not support time functions
|
* Comment if your system does not support time functions
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_HAVE_TIME
|
//#define MBEDTLS_HAVE_TIME
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_PLATFORM_MEMORY
|
* \def MBEDTLS_PLATFORM_MEMORY
|
||||||
|
@ -394,9 +394,9 @@
|
||||||
#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
||||||
#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
||||||
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
|
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
|
||||||
#define MBEDTLS_ECP_DP_BP256R1_ENABLED
|
//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
|
||||||
#define MBEDTLS_ECP_DP_BP384R1_ENABLED
|
//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
|
||||||
#define MBEDTLS_ECP_DP_BP512R1_ENABLED
|
//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
|
||||||
//#define MBEDTLS_ECP_DP_M221_ENABLED // Not implemented yet!
|
//#define MBEDTLS_ECP_DP_M221_ENABLED // Not implemented yet!
|
||||||
#define MBEDTLS_ECP_DP_M255_ENABLED
|
#define MBEDTLS_ECP_DP_M255_ENABLED
|
||||||
//#define MBEDTLS_ECP_DP_M383_ENABLED // Not implemented yet!
|
//#define MBEDTLS_ECP_DP_M383_ENABLED // Not implemented yet!
|
||||||
|
@ -712,7 +712,7 @@
|
||||||
*
|
*
|
||||||
* Enable functions that use the filesystem.
|
* Enable functions that use the filesystem.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_FS_IO
|
//#define MBEDTLS_FS_IO
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
|
* \def MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
|
||||||
|
@ -1049,7 +1049,7 @@
|
||||||
*
|
*
|
||||||
* Comment this macro to disable support for DTLS
|
* Comment this macro to disable support for DTLS
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_PROTO_DTLS
|
//#define MBEDTLS_SSL_PROTO_DTLS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_SSL_ALPN
|
* \def MBEDTLS_SSL_ALPN
|
||||||
|
@ -1073,7 +1073,7 @@
|
||||||
*
|
*
|
||||||
* Comment this to disable anti-replay in DTLS.
|
* Comment this to disable anti-replay in DTLS.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_DTLS_ANTI_REPLAY
|
//#define MBEDTLS_SSL_DTLS_ANTI_REPLAY
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_SSL_DTLS_HELLO_VERIFY
|
* \def MBEDTLS_SSL_DTLS_HELLO_VERIFY
|
||||||
|
@ -1092,7 +1092,7 @@
|
||||||
*
|
*
|
||||||
* Comment this to disable support for HelloVerifyRequest.
|
* Comment this to disable support for HelloVerifyRequest.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_DTLS_HELLO_VERIFY
|
//#define MBEDTLS_SSL_DTLS_HELLO_VERIFY
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_SSL_DTLS_BADMAC_LIMIT
|
* \def MBEDTLS_SSL_DTLS_BADMAC_LIMIT
|
||||||
|
@ -1103,7 +1103,7 @@
|
||||||
*
|
*
|
||||||
* Requires: MBEDTLS_SSL_PROTO_DTLS
|
* Requires: MBEDTLS_SSL_PROTO_DTLS
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
|
//#define MBEDTLS_SSL_DTLS_BADMAC_LIMIT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_SSL_SESSION_TICKETS
|
* \def MBEDTLS_SSL_SESSION_TICKETS
|
||||||
|
@ -1286,7 +1286,7 @@
|
||||||
*
|
*
|
||||||
* This modules adds support for the AES-NI instructions on x86-64
|
* This modules adds support for the AES-NI instructions on x86-64
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_AESNI_C
|
//#define MBEDTLS_AESNI_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_AES_C
|
* \def MBEDTLS_AES_C
|
||||||
|
@ -1809,7 +1809,7 @@
|
||||||
*
|
*
|
||||||
* This module provides TCP/IP networking routines.
|
* This module provides TCP/IP networking routines.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_NET_C
|
//#define MBEDTLS_NET_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_OID_C
|
* \def MBEDTLS_OID_C
|
||||||
|
@ -1846,7 +1846,7 @@
|
||||||
*
|
*
|
||||||
* This modules adds support for the VIA PadLock on x86.
|
* This modules adds support for the VIA PadLock on x86.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_PADLOCK_C
|
//#define MBEDTLS_PADLOCK_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_PEM_PARSE_C
|
* \def MBEDTLS_PEM_PARSE_C
|
||||||
|
@ -2087,7 +2087,7 @@
|
||||||
*
|
*
|
||||||
* Requires: MBEDTLS_SSL_DTLS_HELLO_VERIFY
|
* Requires: MBEDTLS_SSL_DTLS_HELLO_VERIFY
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_SSL_COOKIE_C
|
//#define MBEDTLS_SSL_COOKIE_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_SSL_CLI_C
|
* \def MBEDTLS_SSL_CLI_C
|
||||||
|
@ -2164,7 +2164,7 @@
|
||||||
*
|
*
|
||||||
* This module is used by the HAVEGE random number generator.
|
* This module is used by the HAVEGE random number generator.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_TIMING_C
|
//#define MBEDTLS_TIMING_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_VERSION_C
|
* \def MBEDTLS_VERSION_C
|
||||||
|
|
Loading…
Reference in a new issue