mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 5fdc0fab (#520840)
- Windows now builds with clang by default.
This commit is contained in:
@@ -11,13 +11,6 @@ using content::SSLHostStateDelegate;
|
||||
|
||||
namespace internal {
|
||||
|
||||
net::SHA256HashValue getChainFingerprint256(const net::X509Certificate& cert) {
|
||||
net::SHA256HashValue fingerprint =
|
||||
net::X509Certificate::CalculateChainFingerprint256(
|
||||
cert.os_cert_handle(), cert.GetIntermediateCertificates());
|
||||
return fingerprint;
|
||||
}
|
||||
|
||||
CertPolicy::CertPolicy() {}
|
||||
CertPolicy::~CertPolicy() {}
|
||||
|
||||
@@ -26,7 +19,7 @@ CertPolicy::~CertPolicy() {}
|
||||
// in the saved CertStatus.
|
||||
bool CertPolicy::Check(const net::X509Certificate& cert,
|
||||
net::CertStatus error) const {
|
||||
net::SHA256HashValue fingerprint = getChainFingerprint256(cert);
|
||||
net::SHA256HashValue fingerprint = cert.CalculateChainFingerprint256();
|
||||
std::map<net::SHA256HashValue, net::CertStatus,
|
||||
net::SHA256HashValueLessThan>::const_iterator allowed_iter =
|
||||
allowed_.find(fingerprint);
|
||||
@@ -41,7 +34,7 @@ void CertPolicy::Allow(const net::X509Certificate& cert,
|
||||
net::CertStatus error) {
|
||||
// If this same cert had already been saved with a different error status,
|
||||
// this will replace it with the new error status.
|
||||
net::SHA256HashValue fingerprint = getChainFingerprint256(cert);
|
||||
net::SHA256HashValue fingerprint = cert.CalculateChainFingerprint256();
|
||||
allowed_[fingerprint] = error;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user