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

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

Issue 11739004: Add server certificate request parameters to be stored in SSLCertRequestInfo. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address Ryan's remark ( ASSERT_TRUE(ptr) ) Created 7 years, 11 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
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 scoped_refptr<IOBuffer> user_write_buf_; 140 scoped_refptr<IOBuffer> user_write_buf_;
141 int user_write_buf_len_; 141 int user_write_buf_len_;
142 142
143 // Set when handshake finishes. 143 // Set when handshake finishes.
144 scoped_refptr<X509Certificate> server_cert_; 144 scoped_refptr<X509Certificate> server_cert_;
145 CertVerifyResult server_cert_verify_result_; 145 CertVerifyResult server_cert_verify_result_;
146 bool completed_handshake_; 146 bool completed_handshake_;
147 147
148 // Stores client authentication information between ClientAuthHandler and 148 // Stores client authentication information between ClientAuthHandler and
149 // GetSSLCertRequestInfo calls. 149 // GetSSLCertRequestInfo calls.
150 bool client_auth_cert_needed_;
151 // List of DER-encoded X.509 DistinguishedName of certificate authorities
152 // allowed by the server.
153 std::vector<std::string> cert_authorities_;
154 // Set of certificates that matches the server criteria. This should be
155 // removed soon as being tracked in http://crbug.com/166642.
150 std::vector<scoped_refptr<X509Certificate> > client_certs_; 156 std::vector<scoped_refptr<X509Certificate> > client_certs_;
151 bool client_auth_cert_needed_;
152 157
153 CertVerifier* const cert_verifier_; 158 CertVerifier* const cert_verifier_;
154 scoped_ptr<SingleRequestCertVerifier> verifier_; 159 scoped_ptr<SingleRequestCertVerifier> verifier_;
155 160
156 // OpenSSL stuff 161 // OpenSSL stuff
157 SSL* ssl_; 162 SSL* ssl_;
158 BIO* transport_bio_; 163 BIO* transport_bio_;
159 164
160 scoped_ptr<ClientSocketHandle> transport_; 165 scoped_ptr<ClientSocketHandle> transport_;
161 const HostPortPair host_and_port_; 166 const HostPortPair host_and_port_;
(...skipping 15 matching lines...) Expand all
177 State next_handshake_state_; 182 State next_handshake_state_;
178 NextProtoStatus npn_status_; 183 NextProtoStatus npn_status_;
179 std::string npn_proto_; 184 std::string npn_proto_;
180 std::string server_protos_; 185 std::string server_protos_;
181 BoundNetLog net_log_; 186 BoundNetLog net_log_;
182 }; 187 };
183 188
184 } // namespace net 189 } // namespace net
185 190
186 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 191 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_nss.cc ('k') | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698