aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/mbedtls/patches
diff options
context:
space:
mode:
authorMichael Heimpold <mhei@heimpold.de>2019-01-04 00:00:41 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-01-27 01:04:53 +0100
commit268b5bec8094b5e0737e8705e652e1c80a965096 (patch)
tree84cd56f61641d41e1c9e4843a176eaf007576f99 /package/libs/mbedtls/patches
parente8f230251654edc43432c20f49ee33b67cabf6c9 (diff)
downloadupstream-268b5bec8094b5e0737e8705e652e1c80a965096.tar.gz
upstream-268b5bec8094b5e0737e8705e652e1c80a965096.tar.bz2
upstream-268b5bec8094b5e0737e8705e652e1c80a965096.zip
mbedtls: Kconfig option to enable/disable debug functions
This introduces a new Kconfig option to switch on/off mbedtls' support for debug functions. The idea behind is to inspect TLS traffic with Wireshark for debug purposes. At the moment, there is no native or 'nice' support for this, but at https://github.com/Lekensteyn/mbedtls/commit/68aea15833e1ac9290b8f52a4223fb4585fb3986 an example implementation can be found which uses the debug functions of the library. However, this requires to have this debug stuff enabled in the library, but at the moment it is staticly patched out. So this patch removes the static part from the configuration patch and introduces a dynamic config file editing during build. When enabled, this heavily increases the library size, so I added a warning in the Kconfig help section. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Diffstat (limited to 'package/libs/mbedtls/patches')
-rw-r--r--package/libs/mbedtls/patches/200-config.patch9
1 files changed, 0 insertions, 9 deletions
diff --git a/package/libs/mbedtls/patches/200-config.patch b/package/libs/mbedtls/patches/200-config.patch
index ca4f4c7a32..825d407c6f 100644
--- a/package/libs/mbedtls/patches/200-config.patch
+++ b/package/libs/mbedtls/patches/200-config.patch
@@ -180,15 +180,6 @@
/**
* \def MBEDTLS_CHACHA20_C
-@@ -2120,7 +2120,7 @@
- *
- * This module provides debugging functions.
- */
--#define MBEDTLS_DEBUG_C
-+//#define MBEDTLS_DEBUG_C
-
- /**
- * \def MBEDTLS_DES_C
@@ -2149,7 +2149,7 @@
* \warning DES is considered a weak cipher and its use constitutes a
* security risk. We recommend considering stronger ciphers instead.