| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Used by TransportWriteComplete() and TransportReadComplete() to signify an | 180 // Used by TransportWriteComplete() and TransportReadComplete() to signify an |
| 181 // error writing to the transport socket. A value of OK indicates no error. | 181 // error writing to the transport socket. A value of OK indicates no error. |
| 182 int transport_write_error_; | 182 int transport_write_error_; |
| 183 | 183 |
| 184 // Set when handshake finishes. | 184 // Set when handshake finishes. |
| 185 scoped_ptr<PeerCertificateChain> server_cert_chain_; | 185 scoped_ptr<PeerCertificateChain> server_cert_chain_; |
| 186 scoped_refptr<X509Certificate> server_cert_; | 186 scoped_refptr<X509Certificate> server_cert_; |
| 187 CertVerifyResult server_cert_verify_result_; | 187 CertVerifyResult server_cert_verify_result_; |
| 188 bool completed_handshake_; | 188 bool completed_handshake_; |
| 189 | 189 |
| 190 // Set when Read() or Write() successfully reads or writes data to or from the |
| 191 // network. |
| 192 bool was_ever_used_; |
| 193 |
| 190 // Stores client authentication information between ClientAuthHandler and | 194 // Stores client authentication information between ClientAuthHandler and |
| 191 // GetSSLCertRequestInfo calls. | 195 // GetSSLCertRequestInfo calls. |
| 192 bool client_auth_cert_needed_; | 196 bool client_auth_cert_needed_; |
| 193 // List of DER-encoded X.509 DistinguishedName of certificate authorities | 197 // List of DER-encoded X.509 DistinguishedName of certificate authorities |
| 194 // allowed by the server. | 198 // allowed by the server. |
| 195 std::vector<std::string> cert_authorities_; | 199 std::vector<std::string> cert_authorities_; |
| 196 | 200 |
| 197 CertVerifier* const cert_verifier_; | 201 CertVerifier* const cert_verifier_; |
| 198 scoped_ptr<SingleRequestCertVerifier> verifier_; | 202 scoped_ptr<SingleRequestCertVerifier> verifier_; |
| 199 | 203 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // True if channel ID extension was negotiated. | 237 // True if channel ID extension was negotiated. |
| 234 bool channel_id_xtn_negotiated_; | 238 bool channel_id_xtn_negotiated_; |
| 235 // The request handle for |server_bound_cert_service_|. | 239 // The request handle for |server_bound_cert_service_|. |
| 236 ServerBoundCertService::RequestHandle channel_id_request_handle_; | 240 ServerBoundCertService::RequestHandle channel_id_request_handle_; |
| 237 BoundNetLog net_log_; | 241 BoundNetLog net_log_; |
| 238 }; | 242 }; |
| 239 | 243 |
| 240 } // namespace net | 244 } // namespace net |
| 241 | 245 |
| 242 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 246 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| OLD | NEW |