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

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

Issue 869393005: Perform ClientHello padding if the field trial is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_connection_error_uma
Patch Set: Created 5 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
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 22 matching lines...) Expand all
33 // <openssl/ossl_type.h> 33 // <openssl/ossl_type.h>
34 typedef struct x509_store_ctx_st X509_STORE_CTX; 34 typedef struct x509_store_ctx_st X509_STORE_CTX;
35 35
36 namespace net { 36 namespace net {
37 37
38 class CertVerifier; 38 class CertVerifier;
39 class CTVerifier; 39 class CTVerifier;
40 class SingleRequestCertVerifier; 40 class SingleRequestCertVerifier;
41 class SSLCertRequestInfo; 41 class SSLCertRequestInfo;
42 class SSLInfo; 42 class SSLInfo;
43 class SSLSocketConfigService;
43 44
44 // An SSL client socket implemented with OpenSSL. 45 // An SSL client socket implemented with OpenSSL.
45 class SSLClientSocketOpenSSL : public SSLClientSocket { 46 class SSLClientSocketOpenSSL : public SSLClientSocket {
46 public: 47 public:
47 // Takes ownership of the transport_socket, which may already be connected. 48 // Takes ownership of the transport_socket, which may already be connected.
48 // The given hostname will be compared with the name(s) in the server's 49 // The given hostname will be compared with the name(s) in the server's
49 // certificate during the SSL handshake. ssl_config specifies the SSL 50 // certificate during the SSL handshake. ssl_config specifies the SSL
50 // settings. 51 // settings.
51 SSLClientSocketOpenSSL(scoped_ptr<ClientSocketHandle> transport_socket, 52 SSLClientSocketOpenSSL(scoped_ptr<ClientSocketHandle> transport_socket,
52 const HostPortPair& host_and_port, 53 const HostPortPair& host_and_port,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 scoped_ptr<SingleRequestCertVerifier> verifier_; 253 scoped_ptr<SingleRequestCertVerifier> verifier_;
253 base::TimeTicks start_cert_verification_time_; 254 base::TimeTicks start_cert_verification_time_;
254 255
255 // Certificate Transparency: Verifier and result holder. 256 // Certificate Transparency: Verifier and result holder.
256 ct::CTVerifyResult ct_verify_result_; 257 ct::CTVerifyResult ct_verify_result_;
257 CTVerifier* cert_transparency_verifier_; 258 CTVerifier* cert_transparency_verifier_;
258 259
259 // The service for retrieving Channel ID keys. May be NULL. 260 // The service for retrieving Channel ID keys. May be NULL.
260 ChannelIDService* channel_id_service_; 261 ChannelIDService* channel_id_service_;
261 262
263 // The service for configuring features on the SSL socket. May be NULL.
264 SSLSocketConfigService* ssl_socket_config_service_;
265
262 // Callback that is invoked when the connection finishes. 266 // Callback that is invoked when the connection finishes.
263 // 267 //
264 // Note: this callback will be run in Disconnect(). It will not alter 268 // Note: this callback will be run in Disconnect(). It will not alter
265 // any member variables of the SSLClientSocketOpenSSL. 269 // any member variables of the SSLClientSocketOpenSSL.
266 base::Closure handshake_completion_callback_; 270 base::Closure handshake_completion_callback_;
267 271
268 // OpenSSL stuff 272 // OpenSSL stuff
269 SSL* ssl_; 273 SSL* ssl_;
270 BIO* transport_bio_; 274 BIO* transport_bio_;
271 275
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // pinning failure. It is a (somewhat) human-readable string. 317 // pinning failure. It is a (somewhat) human-readable string.
314 std::string pinning_failure_log_; 318 std::string pinning_failure_log_;
315 319
316 BoundNetLog net_log_; 320 BoundNetLog net_log_;
317 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; 321 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
318 }; 322 };
319 323
320 } // namespace net 324 } // namespace net
321 325
322 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 326 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698