 +#endif /* !OC_DYNAMIC_ALLOCATION */
  
 -/**
-- * \def MBEDTLS_ECP_NIST_OPTIM
-- *
-- * Enable specific 'modulo p' routines for each NIST prime.
-- * Depending on the prime and architecture, makes operations 4 to 8 times
-- * faster on the corresponding curve.
-- *
-- * Comment this macro to disable NIST curves optimisation.
-- */
--#define MBEDTLS_ECP_NIST_OPTIM
-+#define MBEDTLS_PLATFORM_EXIT_ALT
-+#define MBEDTLS_PLATFORM_STD_EXIT oc_exit
-+#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
- 
--/**
 - * \def MBEDTLS_ECDSA_DETERMINISTIC
 - *
 - * Enable deterministic ECDSA (RFC 6979).

- * Uncomment this macro to remove RC4 ciphersuites by default.
- */
-#define MBEDTLS_REMOVE_ARC4_CIPHERSUITES
+/* System support */
+#define MBEDTLS_PLATFORM_C
+#define MBEDTLS_PLATFORM_MEMORY
 
-/**
- * \def MBEDTLS_ECP_DP_SECP192R1_ENABLED
- *

- *
- */
-// #define MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES
+#define MBEDTLS_PEM_PARSE_C
+#define MBEDTLS_BASE64_C
+#define MBEDTLS_X509_CHECK_EXTENDED_KEY_USAGE
 
-/**
- * Allow SHA-1 in the default TLS configuration for TLS 1.2 handshake
