#6611 Updated untrusted server dialog to show sha256 fingerprint
This commit is contained in:
parent
b2173efbae
commit
dc363d66ab
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