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

Side by Side Diff: remoting/protocol/ssl_hmac_channel_authenticator.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: Fixup 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "remoting/protocol/channel_authenticator.h" 15 #include "remoting/protocol/channel_authenticator.h"
16 16
17 namespace net { 17 namespace net {
18 class CertVerifier; 18 class CertVerifier;
19 class CTPolicyEnforcer;
20 class CTVerifier;
19 class DrainableIOBuffer; 21 class DrainableIOBuffer;
20 class GrowableIOBuffer; 22 class GrowableIOBuffer;
21 class SSLServerContext; 23 class SSLServerContext;
22 class SSLSocket; 24 class SSLSocket;
23 class TransportSecurityState; 25 class TransportSecurityState;
24 } // namespace net 26 } // namespace net
25 27
26 namespace remoting { 28 namespace remoting {
27 29
28 class RsaKeyPair; 30 class RsaKeyPair;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 88
87 // Used in the SERVER mode only. 89 // Used in the SERVER mode only.
88 std::string local_cert_; 90 std::string local_cert_;
89 scoped_refptr<RsaKeyPair> local_key_pair_; 91 scoped_refptr<RsaKeyPair> local_key_pair_;
90 std::unique_ptr<net::SSLServerContext> server_context_; 92 std::unique_ptr<net::SSLServerContext> server_context_;
91 93
92 // Used in the CLIENT mode only. 94 // Used in the CLIENT mode only.
93 std::string remote_cert_; 95 std::string remote_cert_;
94 std::unique_ptr<net::TransportSecurityState> transport_security_state_; 96 std::unique_ptr<net::TransportSecurityState> transport_security_state_;
95 std::unique_ptr<net::CertVerifier> cert_verifier_; 97 std::unique_ptr<net::CertVerifier> cert_verifier_;
98 std::unique_ptr<net::CTVerifier> ct_verifier_;
99 std::unique_ptr<net::CTPolicyEnforcer> ct_policy_enforcer_;
96 100
97 std::unique_ptr<net::SSLSocket> socket_; 101 std::unique_ptr<net::SSLSocket> socket_;
98 DoneCallback done_callback_; 102 DoneCallback done_callback_;
99 103
100 scoped_refptr<net::DrainableIOBuffer> auth_write_buf_; 104 scoped_refptr<net::DrainableIOBuffer> auth_write_buf_;
101 scoped_refptr<net::GrowableIOBuffer> auth_read_buf_; 105 scoped_refptr<net::GrowableIOBuffer> auth_read_buf_;
102 106
103 DISALLOW_COPY_AND_ASSIGN(SslHmacChannelAuthenticator); 107 DISALLOW_COPY_AND_ASSIGN(SslHmacChannelAuthenticator);
104 }; 108 };
105 109
106 } // namespace protocol 110 } // namespace protocol
107 } // namespace remoting 111 } // namespace remoting
108 112
109 #endif // REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_ 113 #endif // REMOTING_PROTOCOL_SSL_HMAC_CHANNEL_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | remoting/protocol/ssl_hmac_channel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698