diff options
author | Damien Vielpeau <damien.vielpeau@withings.com> | 2016-04-07 15:58:11 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-07 16:12:50 +0200 |
commit | 83b39a4f4d7ce3a6df974db8d4150e30296a0577 (patch) | |
tree | c65465fbe6b3f4b77fdaeaa213f0f3cf1e17dea0 /lib | |
parent | c111178bd4ed09d462c83c22b4bd99b20c9f6062 (diff) |
mbedtls: fix MBEDTLS_DEBUG builds
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/mbedtls.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index 4f887a123..1e9891971 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -101,7 +101,8 @@ static int entropy_func_mutex(void *data, unsigned char *output, size_t len) #undef MBEDTLS_DEBUG #ifdef MBEDTLS_DEBUG -static void mbed_debug(void *context, int level, const char *line) +static void mbed_debug(void *context, int level, const char *f_name, + int line_nb, const char *line) { struct SessionHandle *data = NULL; @@ -423,7 +424,7 @@ mbed_connect_step1(struct connectdata *conn, #endif #ifdef MBEDTLS_DEBUG - mbedtls_ssl_conf_dbg(&connssl->ssl, mbedtls_debug, data); + mbedtls_ssl_conf_dbg(&connssl->config, mbedtls_debug, data); #endif connssl->connecting_state = ssl_connect_2; |