Also disable zlib support because it is not used, because TLS compression is unsafe (CRIME). Remove dummy error reporting function.
48 lines
1.1 KiB
Diff
48 lines
1.1 KiB
Diff
--- mbedtls-2.1.1/include/mbedtls/config.h.orig 2015-09-26 18:53:50.950970200 +0300
|
|
+++ mbedtls-2.1.1/include/mbedtls/config.h 2015-09-26 19:01:45.088633900 +0300
|
|
@@ -63,7 +63,7 @@
|
|
*
|
|
* Uncomment if the CPU supports SSE2 (IA-32 specific).
|
|
*/
|
|
-//#define MBEDTLS_HAVE_SSE2
|
|
+#define MBEDTLS_HAVE_SSE2
|
|
|
|
/**
|
|
* \def MBEDTLS_HAVE_TIME
|
|
@@ -170,7 +170,7 @@
|
|
*
|
|
* Uncomment to get warnings on using deprecated functions.
|
|
*/
|
|
-//#define MBEDTLS_DEPRECATED_WARNING
|
|
+#define MBEDTLS_DEPRECATED_WARNING
|
|
|
|
/**
|
|
* \def MBEDTLS_DEPRECATED_REMOVED
|
|
@@ -721,7 +721,7 @@
|
|
* Disable if you run into name conflicts and want to really remove the
|
|
* mbedtls_strerror()
|
|
*/
|
|
-#define MBEDTLS_ERROR_STRERROR_DUMMY
|
|
+//#define MBEDTLS_ERROR_STRERROR_DUMMY
|
|
|
|
/**
|
|
* \def MBEDTLS_GENPRIME
|
|
@@ -1215,7 +1215,7 @@
|
|
*
|
|
* Uncomment this to enable pthread mutexes.
|
|
*/
|
|
-//#define MBEDTLS_THREADING_PTHREAD
|
|
+#define MBEDTLS_THREADING_PTHREAD
|
|
|
|
/**
|
|
* \def MBEDTLS_VERSION_FEATURES
|
|
@@ -2208,7 +2208,7 @@
|
|
*
|
|
* Enable this layer to allow use of mutexes within mbed TLS
|
|
*/
|
|
-//#define MBEDTLS_THREADING_C
|
|
+#define MBEDTLS_THREADING_C
|
|
|
|
/**
|
|
* \def MBEDTLS_TIMING_C
|