Cert update fix (#7382)
* Fixed certificate thumbprint default format * Fixed VerifyChangedCertificateEx call arguments
This commit is contained in:
parent
f574497490
commit
a71235be74
@ -276,7 +276,7 @@ BYTE* crypto_cert_hash(X509* xcert, const char* hash, UINT32* length)
|
||||
|
||||
char* crypto_cert_fingerprint_by_hash(X509* xcert, const char* hash)
|
||||
{
|
||||
return crypto_cert_fingerprint_by_hash_ex(xcert, hash, 0);
|
||||
return crypto_cert_fingerprint_by_hash_ex(xcert, hash, TRUE);
|
||||
}
|
||||
|
||||
char* crypto_cert_fingerprint_by_hash_ex(X509* xcert, const char* hash, BOOL separator)
|
||||
|
@ -1519,7 +1519,7 @@ int tls_verify_certificate(rdpTls* tls, CryptoCert cert, const char* hostname, U
|
||||
fp = crypto_cert_fingerprint(cert->px509);
|
||||
}
|
||||
accept_certificate = instance->VerifyChangedCertificateEx(
|
||||
instance, hostname, port, common_name, subject, issuer, pem, old_subject,
|
||||
instance, hostname, port, common_name, subject, issuer, fp, old_subject,
|
||||
old_issuer, old_fp, cflags);
|
||||
if (fpIsAllocated)
|
||||
free(fp);
|
||||
|
Loading…
Reference in New Issue
Block a user