mirror of
https://github.com/deskflow/deskflow.git
synced 2026-07-01 21:02:39 +08:00
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
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user