Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1441)

Unified Diff: chrome/browser/io_thread.cc

Issue 422063004: Certificate Transparency: Require SCTs for EV certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refining policy based on discussion with rsleevi Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | net/cert/ct_verifier.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 4c98ff1acedfa72dce300072d2f333f0d75c448d..23a5003c3c0e620f548fa9ed20b27920d9ee0c38 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -605,6 +605,10 @@ void IOThread::InitAsync() {
net::MultiLogCTVerifier* ct_verifier = new net::MultiLogCTVerifier();
globals_->cert_transparency_verifier.reset(ct_verifier);
+ if (command_line.HasSwitch(switches::kRequireCTForEV)) {
+ ct_verifier->SetEnforceCTEVPolicy(true);
+ }
+
// Add built-in logs
ct_verifier->AddLogs(net::ct::CreateLogVerifiersForKnownLogs());
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | net/cert/ct_verifier.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698