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