1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

mbedtls: add missing header when defining MBEDTLS_DEBUG

Closes #6045
This commit is contained in:
Frederik Wedel-Heinen 2020-10-06 10:41:28 +02:00 committed by Daniel Stenberg
parent ec1cb755bf
commit bc5455fa74
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -31,6 +31,9 @@
#ifdef USE_MBEDTLS
/* Define this to enable lots of debugging for mbedTLS */
/* #define MBEDTLS_DEBUG */
#include <mbedtls/version.h>
#if MBEDTLS_VERSION_NUMBER >= 0x02040000
#include <mbedtls/net_sockets.h>
@ -46,6 +49,12 @@
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/sha256.h>
#if MBEDTLS_VERSION_MAJOR >= 2
# ifdef MBEDTLS_DEBUG
# include <mbedtls/debug.h>
# endif
#endif
#include "urldata.h"
#include "sendf.h"
#include "inet_pton.h"
@ -113,9 +122,6 @@ static int entropy_func_mutex(void *data, unsigned char *output, size_t len)
#endif /* THREADING_SUPPORT */
/* Define this to enable lots of debugging for mbedTLS */
#undef MBEDTLS_DEBUG
#ifdef MBEDTLS_DEBUG
static void mbed_debug(void *context, int level, const char *f_name,
int line_nb, const char *line)