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 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived | 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived |
6 // from AuthCertificateCallback() in | 6 // from AuthCertificateCallback() in |
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
8 | 8 |
9 /* ***** BEGIN LICENSE BLOCK ***** | 9 /* ***** BEGIN LICENSE BLOCK ***** |
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
(...skipping 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 cert_transparency_verifier_(context.cert_transparency_verifier), | 2437 cert_transparency_verifier_(context.cert_transparency_verifier), |
2438 channel_id_service_(context.channel_id_service), | 2438 channel_id_service_(context.channel_id_service), |
2439 ssl_session_cache_shard_(context.ssl_session_cache_shard), | 2439 ssl_session_cache_shard_(context.ssl_session_cache_shard), |
2440 completed_handshake_(false), | 2440 completed_handshake_(false), |
2441 next_handshake_state_(STATE_NONE), | 2441 next_handshake_state_(STATE_NONE), |
2442 nss_fd_(NULL), | 2442 nss_fd_(NULL), |
2443 net_log_(transport_->socket()->NetLog()), | 2443 net_log_(transport_->socket()->NetLog()), |
2444 transport_security_state_(context.transport_security_state), | 2444 transport_security_state_(context.transport_security_state), |
2445 policy_enforcer_(context.cert_policy_enforcer), | 2445 policy_enforcer_(context.cert_policy_enforcer), |
2446 valid_thread_id_(base::kInvalidThreadId) { | 2446 valid_thread_id_(base::kInvalidThreadId) { |
| 2447 DCHECK(cert_verifier_); |
| 2448 |
2447 EnterFunction(""); | 2449 EnterFunction(""); |
2448 InitCore(); | 2450 InitCore(); |
2449 LeaveFunction(""); | 2451 LeaveFunction(""); |
2450 } | 2452 } |
2451 | 2453 |
2452 SSLClientSocketNSS::~SSLClientSocketNSS() { | 2454 SSLClientSocketNSS::~SSLClientSocketNSS() { |
2453 EnterFunction(""); | 2455 EnterFunction(""); |
2454 Disconnect(); | 2456 Disconnect(); |
2455 LeaveFunction(""); | 2457 LeaveFunction(""); |
2456 } | 2458 } |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3238 scoped_refptr<X509Certificate> | 3240 scoped_refptr<X509Certificate> |
3239 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { | 3241 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { |
3240 return core_->state().server_cert.get(); | 3242 return core_->state().server_cert.get(); |
3241 } | 3243 } |
3242 | 3244 |
3243 ChannelIDService* SSLClientSocketNSS::GetChannelIDService() const { | 3245 ChannelIDService* SSLClientSocketNSS::GetChannelIDService() const { |
3244 return channel_id_service_; | 3246 return channel_id_service_; |
3245 } | 3247 } |
3246 | 3248 |
3247 } // namespace net | 3249 } // namespace net |
OLD | NEW |