From 5f9a543b1b5a6da6018599a1bf2d57991e2e3cb4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 26 Apr 2015 20:52:34 -0400 Subject: [PATCH] TLS: Diagnostics - When a certificate fails validation, display the full set of reasons, in debug mode. --- src/TLSClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index 96857d3d7..3651c190c 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -376,6 +376,8 @@ int TLSClient::verify_certificate () const return GNUTLS_E_CERTIFICATE_ERROR; } + if (_debug) + std::cout << "c: INFO " << out.data << "\n"; gnutls_free (out.data); #endif