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

Unified Diff: net/socket/ssl_client_socket.h

Issue 2067843003: Require a CTVerifier and CTPolicyEnforcer for TLS/QUIC sockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extensions Created 4 years, 6 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: net/socket/ssl_client_socket.h
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h
index 10affda136ac2c8b01c066c263e8763cc3f3564a..0dde938613b2c205de96cfb6fd881da28db9aa5a 100644
--- a/net/socket/ssl_client_socket.h
+++ b/net/socket/ssl_client_socket.h
@@ -41,13 +41,7 @@ class X509Certificate;
// This struct groups together several fields which are used by various
// classes related to SSLClientSocket.
struct SSLClientSocketContext {
- SSLClientSocketContext()
- : cert_verifier(NULL),
- channel_id_service(NULL),
- transport_security_state(NULL),
- cert_transparency_verifier(NULL),
- ct_policy_enforcer(NULL) {}
-
+ SSLClientSocketContext() = default;
Ryan Hamilton 2016/06/16 03:31:04 Do you need this at all now?
Ryan Sleevi 2016/06/16 21:29:17 Yes. Omitting it, but leaving line 45 in place, me
SSLClientSocketContext(CertVerifier* cert_verifier_arg,
ChannelIDService* channel_id_service_arg,
TransportSecurityState* transport_security_state_arg,
@@ -61,11 +55,11 @@ struct SSLClientSocketContext {
ct_policy_enforcer(ct_policy_enforcer_arg),
ssl_session_cache_shard(ssl_session_cache_shard_arg) {}
- CertVerifier* cert_verifier;
- ChannelIDService* channel_id_service;
- TransportSecurityState* transport_security_state;
- CTVerifier* cert_transparency_verifier;
- CTPolicyEnforcer* ct_policy_enforcer;
+ CertVerifier* cert_verifier = nullptr;
+ ChannelIDService* channel_id_service = nullptr;
+ TransportSecurityState* transport_security_state = nullptr;
+ CTVerifier* cert_transparency_verifier = nullptr;
+ CTPolicyEnforcer* ct_policy_enforcer = nullptr;
// ssl_session_cache_shard is an opaque string that identifies a shard of the
// SSL session cache. SSL sockets with the same ssl_session_cache_shard may
// resume each other's SSL sessions but we'll never sessions between shards.

Powered by Google App Engine
This is Rietveld 408576698