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

Side by Side Diff: blimp/net/ssl_client_transport.h

Issue 2103143003: Add certificate transparency enforcement to SSL client code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | blimp/net/ssl_client_transport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_NET_SSL_CLIENT_TRANSPORT_H_ 5 #ifndef BLIMP_NET_SSL_CLIENT_TRANSPORT_H_
6 #define BLIMP_NET_SSL_CLIENT_TRANSPORT_H_ 6 #define BLIMP_NET_SSL_CLIENT_TRANSPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "blimp/net/blimp_net_export.h" 13 #include "blimp/net/blimp_net_export.h"
14 #include "blimp/net/blimp_transport.h" 14 #include "blimp/net/blimp_transport.h"
15 #include "blimp/net/exact_match_cert_verifier.h" 15 #include "blimp/net/exact_match_cert_verifier.h"
16 #include "blimp/net/tcp_client_transport.h" 16 #include "blimp/net/tcp_client_transport.h"
17 #include "net/base/address_list.h" 17 #include "net/base/address_list.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "net/cert/ct_policy_enforcer.h"
20 #include "net/cert/multi_log_ct_verifier.h"
19 #include "net/http/transport_security_state.h" 21 #include "net/http/transport_security_state.h"
20 22
21 namespace net { 23 namespace net {
22 class ClientSocketFactory; 24 class ClientSocketFactory;
23 class NetLog; 25 class NetLog;
24 class StreamSocket; 26 class StreamSocket;
25 class TCPClientSocket; 27 class TCPClientSocket;
26 class TransportSecurityState; 28 class TransportSecurityState;
27 } // namespace net 29 } // namespace net
28 30
(...skipping 22 matching lines...) Expand all
51 private: 53 private:
52 // Method called after TCPClientSocket::Connect finishes. 54 // Method called after TCPClientSocket::Connect finishes.
53 void OnTCPConnectComplete(int result) override; 55 void OnTCPConnectComplete(int result) override;
54 56
55 // Method called after SSLClientSocket::Connect finishes. 57 // Method called after SSLClientSocket::Connect finishes.
56 void OnSSLConnectComplete(int result); 58 void OnSSLConnectComplete(int result);
57 59
58 net::IPEndPoint ip_endpoint_; 60 net::IPEndPoint ip_endpoint_;
59 std::unique_ptr<ExactMatchCertVerifier> cert_verifier_; 61 std::unique_ptr<ExactMatchCertVerifier> cert_verifier_;
60 net::TransportSecurityState transport_security_state_; 62 net::TransportSecurityState transport_security_state_;
63 net::MultiLogCTVerifier cert_transparency_verifier_;
64 net::CTPolicyEnforcer ct_policy_enforcer_;
61 65
62 DISALLOW_COPY_AND_ASSIGN(SSLClientTransport); 66 DISALLOW_COPY_AND_ASSIGN(SSLClientTransport);
63 }; 67 };
64 68
65 } // namespace blimp 69 } // namespace blimp
66 70
67 #endif // BLIMP_NET_SSL_CLIENT_TRANSPORT_H_ 71 #endif // BLIMP_NET_SSL_CLIENT_TRANSPORT_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/net/ssl_client_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698