OLD | NEW |
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_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // Set when Connect finishes. | 239 // Set when Connect finishes. |
240 scoped_ptr<PeerCertificateChain> server_cert_chain_; | 240 scoped_ptr<PeerCertificateChain> server_cert_chain_; |
241 scoped_refptr<X509Certificate> server_cert_; | 241 scoped_refptr<X509Certificate> server_cert_; |
242 CertVerifyResult server_cert_verify_result_; | 242 CertVerifyResult server_cert_verify_result_; |
243 bool completed_connect_; | 243 bool completed_connect_; |
244 | 244 |
245 // Set when Read() or Write() successfully reads or writes data to or from the | 245 // Set when Read() or Write() successfully reads or writes data to or from the |
246 // network. | 246 // network. |
247 bool was_ever_used_; | 247 bool was_ever_used_; |
248 | 248 |
249 // Stores client authentication information between ClientAuthHandler and | |
250 // GetSSLCertRequestInfo calls. | |
251 bool client_auth_cert_needed_; | |
252 // List of DER-encoded X.509 DistinguishedName of certificate authorities | 249 // List of DER-encoded X.509 DistinguishedName of certificate authorities |
253 // allowed by the server. | 250 // allowed by the server. |
254 std::vector<std::string> cert_authorities_; | 251 std::vector<std::string> cert_authorities_; |
255 // List of SSLClientCertType values for client certificates allowed by the | 252 // List of SSLClientCertType values for client certificates allowed by the |
256 // server. | 253 // server. |
257 std::vector<SSLClientCertType> cert_key_types_; | 254 std::vector<SSLClientCertType> cert_key_types_; |
258 | 255 |
259 CertVerifier* const cert_verifier_; | 256 CertVerifier* const cert_verifier_; |
260 scoped_ptr<SingleRequestCertVerifier> verifier_; | 257 scoped_ptr<SingleRequestCertVerifier> verifier_; |
261 base::TimeTicks start_cert_verification_time_; | 258 base::TimeTicks start_cert_verification_time_; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 // pinning failure. It is a (somewhat) human-readable string. | 308 // pinning failure. It is a (somewhat) human-readable string. |
312 std::string pinning_failure_log_; | 309 std::string pinning_failure_log_; |
313 | 310 |
314 BoundNetLog net_log_; | 311 BoundNetLog net_log_; |
315 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; | 312 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; |
316 }; | 313 }; |
317 | 314 |
318 } // namespace net | 315 } // namespace net |
319 | 316 |
320 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 317 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |