Merge pull request #6614 from symless/v1-6611-Fingerprint-mismatch

Updated untrusted server dialog to show sha256 fingerprint
This commit is contained in:
Jnewbon 2020-01-15 10:21:24 +00:00 committed by GitHub
commit 14cec87794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -683,7 +683,7 @@ SecureSocket::verifyCertFingerprint()
EVP_MD* tempDigest;
unsigned char tempFingerprint[EVP_MAX_MD_SIZE];
unsigned int tempFingerprintLen;
tempDigest = (EVP_MD*)EVP_sha1();
tempDigest = (EVP_MD*)EVP_sha256();
int digestResult = X509_digest(cert, tempDigest, tempFingerprint, &tempFingerprintLen);
if (digestResult <= 0) {