TLS: Diagnostics

- When a certificate fails validation, display the full set of reasons, in
  debug mode.
This commit is contained in:
Paul Beckingham 2015-04-26 20:52:34 -04:00
parent 75775786e6
commit 5f9a543b1b

View file

@ -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