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 // OpenSSL binding for SSLClientSocket. The class layout and general principle | 5 // OpenSSL binding for SSLClientSocket. The class layout and general principle |
6 // of operation is derived from SSLClientSocketNSS. | 6 // of operation is derived from SSLClientSocketNSS. |
7 | 7 |
8 #include "net/socket/ssl_client_socket_openssl.h" | 8 #include "net/socket/ssl_client_socket_openssl.h" |
9 | 9 |
10 #include <errno.h> | 10 #include <errno.h> |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 ssl_session_cache_shard_(context.ssl_session_cache_shard), | 382 ssl_session_cache_shard_(context.ssl_session_cache_shard), |
383 next_handshake_state_(STATE_NONE), | 383 next_handshake_state_(STATE_NONE), |
384 npn_status_(kNextProtoUnsupported), | 384 npn_status_(kNextProtoUnsupported), |
385 channel_id_xtn_negotiated_(false), | 385 channel_id_xtn_negotiated_(false), |
386 handshake_completed_(false), | 386 handshake_completed_(false), |
387 certificate_verified_(false), | 387 certificate_verified_(false), |
388 transport_security_state_(context.transport_security_state), | 388 transport_security_state_(context.transport_security_state), |
389 policy_enforcer_(context.cert_policy_enforcer), | 389 policy_enforcer_(context.cert_policy_enforcer), |
390 net_log_(transport_->socket()->NetLog()), | 390 net_log_(transport_->socket()->NetLog()), |
391 weak_factory_(this) { | 391 weak_factory_(this) { |
| 392 DCHECK(cert_verifier_); |
392 } | 393 } |
393 | 394 |
394 SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() { | 395 SSLClientSocketOpenSSL::~SSLClientSocketOpenSSL() { |
395 Disconnect(); | 396 Disconnect(); |
396 } | 397 } |
397 | 398 |
398 void SSLClientSocketOpenSSL::GetSSLCertRequestInfo( | 399 void SSLClientSocketOpenSSL::GetSSLCertRequestInfo( |
399 SSLCertRequestInfo* cert_request_info) { | 400 SSLCertRequestInfo* cert_request_info) { |
400 cert_request_info->host_and_port = host_and_port_; | 401 cert_request_info->host_and_port = host_and_port_; |
401 cert_request_info->cert_authorities = cert_authorities_; | 402 cert_request_info->cert_authorities = cert_authorities_; |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1918 | 1919 |
1919 return result; | 1920 return result; |
1920 } | 1921 } |
1921 | 1922 |
1922 scoped_refptr<X509Certificate> | 1923 scoped_refptr<X509Certificate> |
1923 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { | 1924 SSLClientSocketOpenSSL::GetUnverifiedServerCertificateChain() const { |
1924 return server_cert_; | 1925 return server_cert_; |
1925 } | 1926 } |
1926 | 1927 |
1927 } // namespace net | 1928 } // namespace net |
OLD | NEW |