diff options
author | Thomas Glanzmann <thomas@glanzmann.de> | 2016-08-03 08:20:16 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-08-05 00:23:17 +0200 |
commit | 7b4bf37a44791fdd578e68e08adbcfa592380935 (patch) | |
tree | 9fb66b9662ddf962bccfd4082bb1df2a0abf2e86 /lib | |
parent | 4732ca5724072f132876f520c8f02c7c5b654d95 (diff) |
mbedtls: set debug threshold to 4 (verbose) when MBEDTLS_DEBUG is defined
In order to make MBEDTLS_DEBUG work, the debug threshold must be unequal
to 0. This patch also adds a comment how mbedtls must be compiled in
order to make debugging work, and explains the possible debug levels.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/mbedtls.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index a1e7d2363..c04fc0385 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -420,7 +420,15 @@ mbed_connect_step1(struct connectdata *conn, #endif #ifdef MBEDTLS_DEBUG + /* In order to make that work in mbedtls MBEDTLS_DEBUG_C must be defined. */ mbedtls_ssl_conf_dbg(&connssl->config, mbed_debug, data); + /* - 0 No debug + * - 1 Error + * - 2 State change + * - 3 Informational + * - 4 Verbose + */ + mbedtls_debug_set_threshold(4); #endif connssl->connecting_state = ssl_connect_2; |