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

Unified Diff: content/public/common/content_switches.cc

Issue 2753123002: Add --ignore-certificate-errors-spki-list switch and UMA histogram. (Closed)
Patch Set: Created 3 years, 9 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
Index: content/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 313f2fae584c13f37ed5ed5010bfed47debc5832..11df20543e90aaf7ef770b474c13e015afc8417d 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -583,6 +583,17 @@ const char kGpuStartupDialog[] = "gpu-startup-dialog";
// Ignores certificate-related errors.
const char kIgnoreCertificateErrors[] = "ignore-certificate-errors";
+// A set of certificates by public key hash for which to ignore
Ryan Sleevi 2017/03/16 23:19:13 I think this may either be missing a word (certifi
martinkr 2017/03/28 23:16:02 Done.
+// certificate-related errors. If an SSL certificates presented by the server
+// (leaf or intermediate) matches a public key from this list, certificate
Ryan Sleevi 2017/03/16 23:19:13 Grammar: an SSL certificates mismatches plurality
martinkr 2017/03/28 23:16:02 Done.
+// errors are ignored.
+//
+// The switch value must be a comma-separated list of base64-encoded SHA-256
+// hashes of the DER-encoded certificate subject public keys (without tag and
+// length).
Ryan Sleevi 2017/03/16 23:19:13 // The switch value is comprised of a comma-separa
martinkr 2017/03/28 23:16:02 Done.
+const char kIgnoreCertificateErrorsSPKIList[] =
+ "ignore-certificate-errors-spki-list";
+
// Don't allow content to arbitrarily append to the back/forward list.
// The page must prcoess a user gesture before an entry can be added.
const char kHistoryEntryRequiresUserGesture[] =

Powered by Google App Engine
This is Rietveld 408576698