From 11a7d7cf68d94b80b107935b44dd6e9a9efea5d4 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 11 Aug 2016 10:45:14 +0100 Subject: [PATCH] Actually apply debug_level settings in cert_app --- programs/x509/cert_app.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c index 84f67e6d3..2ebb77c10 100644 --- a/programs/x509/cert_app.c +++ b/programs/x509/cert_app.c @@ -54,6 +54,7 @@ int main( void ) #include "mbedtls/net.h" #include "mbedtls/ssl.h" #include "mbedtls/x509.h" +#include "mbedtls/debug.h" #include #include @@ -377,6 +378,10 @@ int main( int argc, char *argv[] ) mbedtls_printf( " ok\n" ); +#if defined(MBEDTLS_DEBUG_C) + mbedtls_debug_set_threshold( opt.debug_level ); +#endif + /* * 2. Start the connection */