mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Fix MbedTLS Cloudflare interop in MODE=tiny
This commit is contained in:
parent
40991ec992
commit
e14ae1642e
1 changed files with 5 additions and 7 deletions
12
third_party/mbedtls/config.h
vendored
12
third_party/mbedtls/config.h
vendored
|
@ -20,11 +20,9 @@
|
|||
/* random numbers */
|
||||
#define ENTROPY_HAVE_STRONG
|
||||
#define MBEDTLS_CTR_DRBG_C
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_HMAC_DRBG_C
|
||||
/*#define MBEDTLS_ENTROPY_FORCE_SHA256*/
|
||||
/*#define MBEDTLS_TEST_NULL_ENTROPY*/
|
||||
#endif
|
||||
|
||||
/* ciphers */
|
||||
#define MBEDTLS_AES_C
|
||||
|
@ -55,14 +53,14 @@
|
|||
#define MBEDTLS_RSA_C
|
||||
#define MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
|
||||
#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_ECP_C
|
||||
#define MBEDTLS_ECDH_C
|
||||
#define MBEDTLS_ECDSA_C
|
||||
#define MBEDTLS_ECDSA_DETERMINISTIC
|
||||
#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
||||
#define MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
|
||||
#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
||||
#define MBEDTLS_DHM_C
|
||||
#define MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
|
||||
|
@ -73,11 +71,11 @@
|
|||
#endif
|
||||
|
||||
/* eliptic curves */
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
||||
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
||||
#define MBEDTLS_ECP_DP_CURVE448_ENABLED
|
||||
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
||||
#ifndef TINY
|
||||
#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
|
||||
#define MBEDTLS_ECP_DP_CURVE448_ENABLED
|
||||
/*#define MBEDTLS_ECP_DP_SECP521R1_ENABLED*/
|
||||
/*#define MBEDTLS_ECP_DP_BP384R1_ENABLED*/
|
||||
/*#define MBEDTLS_ECP_DP_SECP192R1_ENABLED*/
|
||||
|
|
Loading…
Reference in a new issue