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 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2613 NOTREACHED(); | 2613 NOTREACHED(); |
2614 } | 2614 } |
2615 } | 2615 } |
2616 | 2616 |
2617 bool SSLClientSocketNSS::WasEverUsed() const { | 2617 bool SSLClientSocketNSS::WasEverUsed() const { |
2618 DCHECK(core_.get()); | 2618 DCHECK(core_.get()); |
2619 | 2619 |
2620 return core_->WasEverUsed(); | 2620 return core_->WasEverUsed(); |
2621 } | 2621 } |
2622 | 2622 |
2623 bool SSLClientSocketNSS::UsingTCPFastOpen() const { | |
2624 if (transport_.get() && transport_->socket()) { | |
2625 return transport_->socket()->UsingTCPFastOpen(); | |
2626 } | |
2627 NOTREACHED(); | |
2628 return false; | |
2629 } | |
2630 | |
2631 int SSLClientSocketNSS::Read(IOBuffer* buf, int buf_len, | 2623 int SSLClientSocketNSS::Read(IOBuffer* buf, int buf_len, |
2632 const CompletionCallback& callback) { | 2624 const CompletionCallback& callback) { |
2633 DCHECK(core_.get()); | 2625 DCHECK(core_.get()); |
2634 DCHECK(!callback.is_null()); | 2626 DCHECK(!callback.is_null()); |
2635 | 2627 |
2636 EnterFunction(buf_len); | 2628 EnterFunction(buf_len); |
2637 int rv = core_->Read(buf, buf_len, callback); | 2629 int rv = core_->Read(buf, buf_len, callback); |
2638 LeaveFunction(rv); | 2630 LeaveFunction(rv); |
2639 | 2631 |
2640 return rv; | 2632 return rv; |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3195 return core_->GetChannelIDKey(); | 3187 return core_->GetChannelIDKey(); |
3196 } | 3188 } |
3197 | 3189 |
3198 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const { | 3190 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const { |
3199 if (completed_handshake_) | 3191 if (completed_handshake_) |
3200 return SSL_FAILURE_NONE; | 3192 return SSL_FAILURE_NONE; |
3201 return SSL_FAILURE_UNKNOWN; | 3193 return SSL_FAILURE_UNKNOWN; |
3202 } | 3194 } |
3203 | 3195 |
3204 } // namespace net | 3196 } // namespace net |
OLD | NEW |