cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: MBEDTLS debugging in libcurl [WAS: [PATCH] mbedtls: Rename mbedtls_debug info mbed_debug to match] debug function name

From: Thomas Glanzmann <thomas_at_glanzmann.de>
Date: Wed, 3 Aug 2016 08:39:03 +0200

Hello Ray,

> Try putting a breakpoint on the function to see if it's called without
> the right context? That's the only thing I can think of.
> mbedtls_ssl_conf_dbg doesn't have a return code so we have to assume
> it's always successful. Also you could ask in an mbedtls forum, maybe
> they know.

I tried that before, the breakpoint never got hit. But now I did the
obvious and read the mbedtls source code. And I found the reason: It is
not enough to enable debugging. The debug level also needs to be set. It
defaults 0 (disabling debugging). Find attached another patch which sets
the debug level to verbose and also explains in a comment in the source
code what needs to be done to enable it bot in mbedtls and curl.

Cheers,
        Thomas

Received on 2016-08-03