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

Side by Side Diff: net/socket/ssl_client_socket_nss.h

Issue 422063004: Certificate Transparency: Require SCTs for EV certificates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: datatype issues addressed. Created 6 years, 1 month 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 NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
7 7
8 #include <certt.h> 8 #include <certt.h>
9 #include <keyt.h> 9 #include <keyt.h>
10 #include <nspr.h> 10 #include <nspr.h>
(...skipping 19 matching lines...) Expand all
30 #include "net/ssl/channel_id_service.h" 30 #include "net/ssl/channel_id_service.h"
31 #include "net/ssl/ssl_config_service.h" 31 #include "net/ssl/ssl_config_service.h"
32 32
33 namespace base { 33 namespace base {
34 class SequencedTaskRunner; 34 class SequencedTaskRunner;
35 } 35 }
36 36
37 namespace net { 37 namespace net {
38 38
39 class BoundNetLog; 39 class BoundNetLog;
40 class CertPolicyEnforcer;
40 class CertVerifier; 41 class CertVerifier;
41 class ChannelIDService; 42 class ChannelIDService;
42 class CTVerifier; 43 class CTVerifier;
43 class ClientSocketHandle; 44 class ClientSocketHandle;
44 class SingleRequestCertVerifier; 45 class SingleRequestCertVerifier;
45 class TransportSecurityState; 46 class TransportSecurityState;
46 class X509Certificate; 47 class X509Certificate;
47 48
48 // An SSL client socket implemented with Mozilla NSS. 49 // An SSL client socket implemented with Mozilla NSS.
49 class SSLClientSocketNSS : public SSLClientSocket { 50 class SSLClientSocketNSS : public SSLClientSocket {
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // TODO(rsleevi): http://crbug.com/130616 - Remove this member once 198 // TODO(rsleevi): http://crbug.com/130616 - Remove this member once
198 // ExportKeyingMaterial is updated to be asynchronous. 199 // ExportKeyingMaterial is updated to be asynchronous.
199 PRFileDesc* nss_fd_; 200 PRFileDesc* nss_fd_;
200 201
201 BoundNetLog net_log_; 202 BoundNetLog net_log_;
202 203
203 base::TimeTicks start_cert_verification_time_; 204 base::TimeTicks start_cert_verification_time_;
204 205
205 TransportSecurityState* transport_security_state_; 206 TransportSecurityState* transport_security_state_;
206 207
208 scoped_ptr<CertPolicyEnforcer> policy_enforcer_;
209
207 // pinning_failure_log contains a message produced by 210 // pinning_failure_log contains a message produced by
208 // TransportSecurityState::CheckPublicKeyPins in the event of a 211 // TransportSecurityState::CheckPublicKeyPins in the event of a
209 // pinning failure. It is a (somewhat) human-readable string. 212 // pinning failure. It is a (somewhat) human-readable string.
210 std::string pinning_failure_log_; 213 std::string pinning_failure_log_;
211 214
212 // The following two variables are added for debugging bug 65948. Will 215 // The following two variables are added for debugging bug 65948. Will
213 // remove this code after fixing bug 65948. 216 // remove this code after fixing bug 65948.
214 // Added the following code Debugging in release mode. 217 // Added the following code Debugging in release mode.
215 mutable base::Lock lock_; 218 mutable base::Lock lock_;
216 // This is mutable so that CalledOnValidThread can set it. 219 // This is mutable so that CalledOnValidThread can set it.
217 // It's guarded by |lock_|. 220 // It's guarded by |lock_|.
218 mutable base::PlatformThreadId valid_thread_id_; 221 mutable base::PlatformThreadId valid_thread_id_;
219 }; 222 };
220 223
221 } // namespace net 224 } // namespace net
222 225
223 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ 226 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698