Merge pull request #6614 from symless/v1-6611-Fingerprint-mismatch
Updated untrusted server dialog to show sha256 fingerprint
This commit is contained in:
commit
14cec87794
1 changed files with 1 additions and 1 deletions
|
|
@ -683,7 +683,7 @@ SecureSocket::verifyCertFingerprint()
|
||||||
EVP_MD* tempDigest;
|
EVP_MD* tempDigest;
|
||||||
unsigned char tempFingerprint[EVP_MAX_MD_SIZE];
|
unsigned char tempFingerprint[EVP_MAX_MD_SIZE];
|
||||||
unsigned int tempFingerprintLen;
|
unsigned int tempFingerprintLen;
|
||||||
tempDigest = (EVP_MD*)EVP_sha1();
|
tempDigest = (EVP_MD*)EVP_sha256();
|
||||||
int digestResult = X509_digest(cert, tempDigest, tempFingerprint, &tempFingerprintLen);
|
int digestResult = X509_digest(cert, tempDigest, tempFingerprint, &tempFingerprintLen);
|
||||||
|
|
||||||
if (digestResult <= 0) {
|
if (digestResult <= 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue