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

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

Issue 1422573008: Plumbing SSLPrivateKey (//net) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-needed forward decl. Created 5 years, 1 month 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/net_common.gypi ('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 <openssl/base.h> 8 #include <openssl/base.h>
9 #include <openssl/ssl.h> 9 #include <openssl/ssl.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 16 matching lines...) Expand all
27 #include "net/ssl/ssl_client_cert_type.h" 27 #include "net/ssl/ssl_client_cert_type.h"
28 #include "net/ssl/ssl_config_service.h" 28 #include "net/ssl/ssl_config_service.h"
29 #include "net/ssl/ssl_failure_state.h" 29 #include "net/ssl/ssl_failure_state.h"
30 30
31 namespace net { 31 namespace net {
32 32
33 class CertVerifier; 33 class CertVerifier;
34 class CTVerifier; 34 class CTVerifier;
35 class SSLCertRequestInfo; 35 class SSLCertRequestInfo;
36 class SSLInfo; 36 class SSLInfo;
37 class SSLPrivateKey;
38 37
39 // An SSL client socket implemented with OpenSSL. 38 // An SSL client socket implemented with OpenSSL.
40 class SSLClientSocketOpenSSL : public SSLClientSocket { 39 class SSLClientSocketOpenSSL : public SSLClientSocket {
41 public: 40 public:
42 // Takes ownership of the transport_socket, which may already be connected. 41 // Takes ownership of the transport_socket, which may already be connected.
43 // The given hostname will be compared with the name(s) in the server's 42 // The given hostname will be compared with the name(s) in the server's
44 // certificate during the SSL handshake. ssl_config specifies the SSL 43 // certificate during the SSL handshake. ssl_config specifies the SSL
45 // settings. 44 // settings.
46 SSLClientSocketOpenSSL(scoped_ptr<ClientSocketHandle> transport_socket, 45 SSLClientSocketOpenSSL(scoped_ptr<ClientSocketHandle> transport_socket,
47 const HostPortPair& host_and_port, 46 const HostPortPair& host_and_port,
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // True if the current session was newly-established, but the certificate had 325 // True if the current session was newly-established, but the certificate had
327 // not yet been verified externally, so it cannot be inserted into the cache 326 // not yet been verified externally, so it cannot be inserted into the cache
328 // until later. 327 // until later.
329 bool session_pending_; 328 bool session_pending_;
330 // True if the initial handshake's certificate has been verified. 329 // True if the initial handshake's certificate has been verified.
331 bool certificate_verified_; 330 bool certificate_verified_;
332 // The request handle for |channel_id_service_|. 331 // The request handle for |channel_id_service_|.
333 ChannelIDService::Request channel_id_request_; 332 ChannelIDService::Request channel_id_request_;
334 SSLFailureState ssl_failure_state_; 333 SSLFailureState ssl_failure_state_;
335 334
336 scoped_ptr<SSLPrivateKey> private_key_;
337 int signature_result_; 335 int signature_result_;
338 std::vector<uint8_t> signature_; 336 std::vector<uint8_t> signature_;
339 337
340 TransportSecurityState* transport_security_state_; 338 TransportSecurityState* transport_security_state_;
341 339
342 CertPolicyEnforcer* const policy_enforcer_; 340 CertPolicyEnforcer* const policy_enforcer_;
343 341
344 // pinning_failure_log contains a message produced by 342 // pinning_failure_log contains a message produced by
345 // TransportSecurityState::CheckPublicKeyPins in the event of a 343 // TransportSecurityState::CheckPublicKeyPins in the event of a
346 // pinning failure. It is a (somewhat) human-readable string. 344 // pinning failure. It is a (somewhat) human-readable string.
347 std::string pinning_failure_log_; 345 std::string pinning_failure_log_;
348 346
349 BoundNetLog net_log_; 347 BoundNetLog net_log_;
350 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; 348 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
351 }; 349 };
352 350
353 } // namespace net 351 } // namespace net
354 352
355 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 353 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « net/net_common.gypi ('k') | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698