Introduce additional Certificate Transparency preferences

https://chromium-review.googlesource.com/c/chromium/src/+/987513
This commit is contained in:
deepak1556 2018-07-21 02:39:52 +05:30 committed by Aleksei Kuzmin
parent 0afebdc531
commit 400b23c5cb
2 changed files with 7 additions and 2 deletions

View file

@ -23,7 +23,9 @@ void RequireCTDelegate::ClearCTExcludedHostsList() {
}
RequireCTDelegate::CTRequirementLevel RequireCTDelegate::IsCTRequiredForHost(
const std::string& host) {
const std::string& host,
const net::X509Certificate* chain,
const net::HashValueVector& hashes) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
if (!ct_excluded_hosts_.empty() &&
(ct_excluded_hosts_.find(host) != ct_excluded_hosts_.end()))

View file

@ -22,7 +22,10 @@ class RequireCTDelegate
void ClearCTExcludedHostsList();
// net::TransportSecurityState::RequireCTDelegate:
CTRequirementLevel IsCTRequiredForHost(const std::string& host) override;
CTRequirementLevel IsCTRequiredForHost(
const std::string& host,
const net::X509Certificate* chain,
const net::HashValueVector& hashes) override;
private:
std::set<std::string> ct_excluded_hosts_;