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 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2874 << " for cipherSuite " << cipher_suite; | 2874 << " for cipherSuite " << cipher_suite; |
2875 } | 2875 } |
2876 | 2876 |
2877 ssl_info->handshake_type = core_->state().resumed_handshake ? | 2877 ssl_info->handshake_type = core_->state().resumed_handshake ? |
2878 SSLInfo::HANDSHAKE_RESUME : SSLInfo::HANDSHAKE_FULL; | 2878 SSLInfo::HANDSHAKE_RESUME : SSLInfo::HANDSHAKE_FULL; |
2879 | 2879 |
2880 LeaveFunction(""); | 2880 LeaveFunction(""); |
2881 return true; | 2881 return true; |
2882 } | 2882 } |
2883 | 2883 |
| 2884 bool SSLClientSocketNSS::InSessionCache() const { |
| 2885 // For now, always return true so that SSLConnectJobs are never held back. |
| 2886 return true; |
| 2887 } |
| 2888 |
| 2889 void SSLClientSocketNSS::WatchSessionForCompletion( |
| 2890 const base::Closure& callback) { |
| 2891 NOTREACHED(); |
| 2892 } |
| 2893 |
| 2894 void SSLClientSocketNSS::SetSocketFailureCallback( |
| 2895 const base::Closure& callback) { |
| 2896 NOTREACHED(); |
| 2897 } |
| 2898 |
| 2899 void SSLClientSocketNSS::SetIsLeader() { |
| 2900 NOTREACHED(); |
| 2901 } |
| 2902 |
| 2903 void SSLClientSocketNSS::OnSocketFailure() { |
| 2904 NOTREACHED(); |
| 2905 } |
| 2906 |
2884 void SSLClientSocketNSS::GetSSLCertRequestInfo( | 2907 void SSLClientSocketNSS::GetSSLCertRequestInfo( |
2885 SSLCertRequestInfo* cert_request_info) { | 2908 SSLCertRequestInfo* cert_request_info) { |
2886 EnterFunction(""); | 2909 EnterFunction(""); |
2887 cert_request_info->host_and_port = host_and_port_; | 2910 cert_request_info->host_and_port = host_and_port_; |
2888 cert_request_info->cert_authorities = core_->state().cert_authorities; | 2911 cert_request_info->cert_authorities = core_->state().cert_authorities; |
2889 LeaveFunction(""); | 2912 LeaveFunction(""); |
2890 } | 2913 } |
2891 | 2914 |
2892 int SSLClientSocketNSS::ExportKeyingMaterial(const base::StringPiece& label, | 2915 int SSLClientSocketNSS::ExportKeyingMaterial(const base::StringPiece& label, |
2893 bool has_context, | 2916 bool has_context, |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3614 scoped_refptr<X509Certificate> | 3637 scoped_refptr<X509Certificate> |
3615 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { | 3638 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { |
3616 return core_->state().server_cert.get(); | 3639 return core_->state().server_cert.get(); |
3617 } | 3640 } |
3618 | 3641 |
3619 ServerBoundCertService* SSLClientSocketNSS::GetServerBoundCertService() const { | 3642 ServerBoundCertService* SSLClientSocketNSS::GetServerBoundCertService() const { |
3620 return server_bound_cert_service_; | 3643 return server_bound_cert_service_; |
3621 } | 3644 } |
3622 | 3645 |
3623 } // namespace net | 3646 } // namespace net |
OLD | NEW |