cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to use MBEDTLS_DEBUG and get additional mbedtls debugging information

From: Thomas Glanzmann <thomas_at_glanzmann.de>
Date: Mon, 1 Aug 2016 17:19:16 +0200

Hello,
I already applied the patch that makes it possible to build with
MBEDTLS_DEBUG defined. But I don't get what I need to do to get the
extended debugging. I tried:

#include <curl/curl.h>

void gethaxx(void)
{
        CURL *curl = curl_easy_init();
        curl_easy_setopt(curl, CURLOPT_CAINFO, "/etc/ssl/certs/ca-certificates.crt");
        curl_easy_setopt(curl, CURLOPT_URL, "https://curl.haxx.se");
        curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
        curl_easy_perform(curl);
        curl_easy_cleanup(curl);
}

int main(int argc, char *argv[])
{
        curl_global_init(CURL_GLOBAL_ALL);
        gethaxx();
        return 0;
}

Cheers,
        Thomas
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-08-01