| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #include "base/threading/thread_restrictions.h" | 75 #include "base/threading/thread_restrictions.h" |
| 76 #include "base/values.h" | 76 #include "base/values.h" |
| 77 #include "crypto/rsa_private_key.h" | 77 #include "crypto/rsa_private_key.h" |
| 78 #include "crypto/scoped_nss_types.h" | 78 #include "crypto/scoped_nss_types.h" |
| 79 #include "net/base/address_list.h" | 79 #include "net/base/address_list.h" |
| 80 #include "net/base/asn1_util.h" | 80 #include "net/base/asn1_util.h" |
| 81 #include "net/base/cert_status_flags.h" | 81 #include "net/base/cert_status_flags.h" |
| 82 #include "net/base/cert_verifier.h" | 82 #include "net/base/cert_verifier.h" |
| 83 #include "net/base/connection_type_histograms.h" | 83 #include "net/base/connection_type_histograms.h" |
| 84 #include "net/base/dns_util.h" | 84 #include "net/base/dns_util.h" |
| 85 #include "net/base/dnsrr_resolver.h" | |
| 86 #include "net/base/dnssec_chain_verifier.h" | 85 #include "net/base/dnssec_chain_verifier.h" |
| 87 #include "net/base/transport_security_state.h" | 86 #include "net/base/transport_security_state.h" |
| 88 #include "net/base/io_buffer.h" | 87 #include "net/base/io_buffer.h" |
| 89 #include "net/base/net_errors.h" | 88 #include "net/base/net_errors.h" |
| 90 #include "net/base/net_log.h" | 89 #include "net/base/net_log.h" |
| 91 #include "net/base/ssl_cert_request_info.h" | 90 #include "net/base/ssl_cert_request_info.h" |
| 92 #include "net/base/ssl_connection_status_flags.h" | 91 #include "net/base/ssl_connection_status_flags.h" |
| 93 #include "net/base/ssl_info.h" | 92 #include "net/base/ssl_info.h" |
| 94 #include "net/base/sys_addrinfo.h" | 93 #include "net/base/sys_addrinfo.h" |
| 95 #include "net/base/x509_certificate_net_log_param.h" | 94 #include "net/base/x509_certificate_net_log_param.h" |
| (...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2616 valid_thread_id_ = base::PlatformThread::CurrentId(); | 2615 valid_thread_id_ = base::PlatformThread::CurrentId(); |
| 2617 } | 2616 } |
| 2618 | 2617 |
| 2619 bool SSLClientSocketNSS::CalledOnValidThread() const { | 2618 bool SSLClientSocketNSS::CalledOnValidThread() const { |
| 2620 EnsureThreadIdAssigned(); | 2619 EnsureThreadIdAssigned(); |
| 2621 base::AutoLock auto_lock(lock_); | 2620 base::AutoLock auto_lock(lock_); |
| 2622 return valid_thread_id_ == base::PlatformThread::CurrentId(); | 2621 return valid_thread_id_ == base::PlatformThread::CurrentId(); |
| 2623 } | 2622 } |
| 2624 | 2623 |
| 2625 } // namespace net | 2624 } // namespace net |
| OLD | NEW |