mirror of
https://github.com/moparisthebest/curl
synced 2024-10-31 15:45:12 -04:00
mbedtls: fix MBEDTLS_DEBUG builds
This commit is contained in:
parent
c111178bd4
commit
83b39a4f4d
@ -101,7 +101,8 @@ static int entropy_func_mutex(void *data, unsigned char *output, size_t len)
|
|||||||
#undef MBEDTLS_DEBUG
|
#undef MBEDTLS_DEBUG
|
||||||
|
|
||||||
#ifdef 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;
|
struct SessionHandle *data = NULL;
|
||||||
|
|
||||||
@ -423,7 +424,7 @@ mbed_connect_step1(struct connectdata *conn,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MBEDTLS_DEBUG
|
#ifdef MBEDTLS_DEBUG
|
||||||
mbedtls_ssl_conf_dbg(&connssl->ssl, mbedtls_debug, data);
|
mbedtls_ssl_conf_dbg(&connssl->config, mbedtls_debug, data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
connssl->connecting_state = ssl_connect_2;
|
connssl->connecting_state = ssl_connect_2;
|
||||||
|
Loading…
Reference in New Issue
Block a user