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

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

Issue 158963004: Merge 249240 "Close the correct end of the BIO pair on transport..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_openssl.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 (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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int DoReadLoop(int result); 114 int DoReadLoop(int result);
115 int DoWriteLoop(int result); 115 int DoWriteLoop(int result);
116 int DoPayloadRead(); 116 int DoPayloadRead();
117 int DoPayloadWrite(); 117 int DoPayloadWrite();
118 118
119 int BufferSend(); 119 int BufferSend();
120 int BufferRecv(); 120 int BufferRecv();
121 void BufferSendComplete(int result); 121 void BufferSendComplete(int result);
122 void BufferRecvComplete(int result); 122 void BufferRecvComplete(int result);
123 void TransportWriteComplete(int result); 123 void TransportWriteComplete(int result);
124 void TransportReadComplete(int result); 124 int TransportReadComplete(int result);
125 125
126 // Callback from the SSL layer that indicates the remote server is requesting 126 // Callback from the SSL layer that indicates the remote server is requesting
127 // a certificate for this client. 127 // a certificate for this client.
128 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey); 128 int ClientCertRequestCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey);
129 129
130 // Callback from the SSL layer that indicates the remote server supports TLS 130 // Callback from the SSL layer that indicates the remote server supports TLS
131 // Channel IDs. 131 // Channel IDs.
132 void ChannelIDRequestCallback(SSL* ssl, EVP_PKEY** pkey); 132 void ChannelIDRequestCallback(SSL* ssl, EVP_PKEY** pkey);
133 133
134 // Callback from the SSL layer to check which NPN protocol we are supporting 134 // Callback from the SSL layer to check which NPN protocol we are supporting
(...skipping 22 matching lines...) Expand all
157 int user_write_buf_len_; 157 int user_write_buf_len_;
158 158
159 // Used by DoPayloadRead() when attempting to fill the caller's buffer with 159 // Used by DoPayloadRead() when attempting to fill the caller's buffer with
160 // as much data as possible without blocking. 160 // as much data as possible without blocking.
161 // If DoPayloadRead() encounters an error after having read some data, stores 161 // If DoPayloadRead() encounters an error after having read some data, stores
162 // the result to return on the *next* call to DoPayloadRead(). A value > 0 162 // the result to return on the *next* call to DoPayloadRead(). A value > 0
163 // indicates there is no pending result, otherwise 0 indicates EOF and < 0 163 // indicates there is no pending result, otherwise 0 indicates EOF and < 0
164 // indicates an error. 164 // indicates an error.
165 int pending_read_error_; 165 int pending_read_error_;
166 166
167 // Used by TransportWriteComplete() and TransportReadComplete() to signify an
168 // error writing to the transport socket. A value of OK indicates no error.
169 int transport_write_error_;
170
167 // Set when handshake finishes. 171 // Set when handshake finishes.
168 scoped_refptr<X509Certificate> server_cert_; 172 scoped_refptr<X509Certificate> server_cert_;
169 CertVerifyResult server_cert_verify_result_; 173 CertVerifyResult server_cert_verify_result_;
170 bool completed_handshake_; 174 bool completed_handshake_;
171 175
172 // Stores client authentication information between ClientAuthHandler and 176 // Stores client authentication information between ClientAuthHandler and
173 // GetSSLCertRequestInfo calls. 177 // GetSSLCertRequestInfo calls.
174 bool client_auth_cert_needed_; 178 bool client_auth_cert_needed_;
175 // List of DER-encoded X.509 DistinguishedName of certificate authorities 179 // List of DER-encoded X.509 DistinguishedName of certificate authorities
176 // allowed by the server. 180 // allowed by the server.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // True if channel ID extension was negotiated. 219 // True if channel ID extension was negotiated.
216 bool channel_id_xtn_negotiated_; 220 bool channel_id_xtn_negotiated_;
217 // The request handle for |server_bound_cert_service_|. 221 // The request handle for |server_bound_cert_service_|.
218 ServerBoundCertService::RequestHandle channel_id_request_handle_; 222 ServerBoundCertService::RequestHandle channel_id_request_handle_;
219 BoundNetLog net_log_; 223 BoundNetLog net_log_;
220 }; 224 };
221 225
222 } // namespace net 226 } // namespace net
223 227
224 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 228 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698