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

Unified Diff: net/http/transport_security_state.h

Issue 1266723003: Process Public-Key-Pin-Report-Only headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: davidben comments Created 5 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 | net/http/transport_security_state.cc » ('j') | no next file with comments »
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 1c5658ae2984ff34a6d2c7c20783ce56e1772dc9..d7befb7cfef31d159e94633308074936a6088cd2 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -299,6 +299,14 @@ class NET_EXPORT TransportSecurityState
const HashValueVector& hashes,
const GURL& report_uri);
+ // Parses |value| as a Public-Key-Pins-Report-Only header value and
+ // sends a HPKP report for |host_port_pair| if |ssl_info| violates the
+ // pin. Returns true if |value| parses and includes a valid
+ // report-uri, and false otherwise.
+ bool ProcessHPKPReportOnlyHeader(const std::string& value,
+ const HostPortPair& host_port_pair,
+ const SSLInfo& ssl_info);
+
// 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698