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

Unified Diff: net/http/transport_security_state.h

Issue 433123003: Centralize the logic for checking public key pins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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 | net/http/transport_security_state.cc » ('j') | net/http/transport_security_state.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_state.h
diff --git a/net/http/transport_security_state.h b/net/http/transport_security_state.h
index 364593791455030cc4d5cd37a30b2dc03f3ec6c4..6f04a262106b93438b07e8ca24c267fc1793a141 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -252,6 +252,13 @@ class NET_EXPORT TransportSecurityState
bool AddHPKP(const std::string& host, const base::Time& expiry,
bool include_subdomains, const HashValueVector& hashes);
+ // Returns true if |cert_verify_result| meets the pinning constrains of
+ // |host|, or if the build it out of date, or if the root is unknown.
wtc 2014/08/05 18:16:24 1. Typo: the build it out of date => the build is
Ryan Hamilton 2014/08/06 21:51:01 Done.
+ bool VerifyPinning(const CertVerifyResult& cert_verify_result,
+ bool sni_available,
+ const std::string& host,
+ std::string* pinning_failure_log);
+
// Returns true iff we have any static public key pins for the |host| and
// iff its set of required pins is the set we expect for Google
// properties.
« no previous file with comments | « no previous file | net/http/transport_security_state.cc » ('j') | net/http/transport_security_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698