Merge pull request #2928 from akallabeth/non_verbose_VerifyX509Certificate
Silenced VerifyX509Certificate logging.
This commit is contained in:
commit
b02943ae98
@ -1105,17 +1105,19 @@ int tls_verify_certificate(rdpTls* tls, CryptoCert cert, char* hostname, int por
|
||||
status = -1;
|
||||
|
||||
if (instance->VerifyX509Certificate)
|
||||
{
|
||||
status = instance->VerifyX509Certificate(instance, pemCert, length, hostname, port, tls->isGatewayTransport);
|
||||
}
|
||||
|
||||
WLog_ERR(TAG, "(length = %d) status: %d%s", length, status, pemCert);
|
||||
else
|
||||
WLog_ERR(TAG, "No VerifyX509Certificate callback registered!");
|
||||
|
||||
free(pemCert);
|
||||
BIO_free(bio);
|
||||
|
||||
if (status < 0)
|
||||
{
|
||||
WLog_ERR(TAG, "VerifyX509Certificate failed: (length = %d) status: [%d] %s",
|
||||
length, status, pemCert);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return (status == 0) ? 0 : 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user