TLS: Diagnostics
- When a certificate fails validation, display the full set of reasons, in debug mode.
This commit is contained in:
@@ -376,6 +376,8 @@ int TLSClient::verify_certificate () const
|
|||||||
return GNUTLS_E_CERTIFICATE_ERROR;
|
return GNUTLS_E_CERTIFICATE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_debug)
|
||||||
|
std::cout << "c: INFO " << out.data << "\n";
|
||||||
gnutls_free (out.data);
|
gnutls_free (out.data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user