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

Unified Diff: net/http/transport_security_state.h

Issue 2144693004: Add the ability to send Expect-Staple reports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ocsp-verify-result
Patch Set: Clean tests, add documentation. Created 4 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') | 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 d5283712c57ae28e53a6f63cecd722c136bc7a19..ca1cc91dfc3fdd04ea6759884940efe2d92109d2 100644
--- a/net/http/transport_security_state.h
+++ b/net/http/transport_security_state.h
@@ -449,6 +449,18 @@ class NET_EXPORT TransportSecurityState
const HostPortPair& host_port_pair,
const SSLInfo& ssl_info);
+ // Sends an Expect-Staple report containing the raw |ocsp_response| for
+ // |host_port_pair| if the following conditions are true:
+ // 1. The given host is present on the Expect-Staple preload list with a valid
+ // report-uri, and the build is timely (i.e. preload list is fresh).
Ryan Sleevi 2016/07/19 19:11:04 This is really two conditions (same with #3) :) 1
dadrian 2016/07/19 21:21:45 Done.
dadrian 2016/07/19 21:21:46 Done.
+ // 2. |ssl_info| indicates the connection did not provide an OCSP response
+ // indicating a revocation status of GOOD.
+ // 3. A report sender is provided with SetReportSender(), and the private
+ // |enable_static_expect_staple_| flag is set.
+ void ProcessExpectStaple(const HostPortPair& host_port_pair,
Ryan Sleevi 2016/07/19 19:11:04 Naming wise, I think this should be CheckExpectSta
dadrian 2016/07/19 21:21:46 Done. This is just a ploy to cause name collision
+ const SSLInfo& ssl_info,
+ const std::string& ocsp_response);
+
// For unit tests only; causes ShouldRequireCT() to return |*required|
// by default (that is, unless a RequireCTDelegate overrides). Set to
// nullptr to reset.
« 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