Cert update fix (#7382)

* Fixed certificate thumbprint default format

* Fixed VerifyChangedCertificateEx call arguments
This commit is contained in:
akallabeth 2021-10-21 09:07:52 +02:00 committed by GitHub
parent f574497490
commit a71235be74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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