| 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 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3077 DCHECK(core_.get()); | 3077 DCHECK(core_.get()); |
| 3078 DCHECK(!callback.is_null()); | 3078 DCHECK(!callback.is_null()); |
| 3079 | 3079 |
| 3080 EnterFunction(buf_len); | 3080 EnterFunction(buf_len); |
| 3081 int rv = core_->Write(buf, buf_len, callback); | 3081 int rv = core_->Write(buf, buf_len, callback); |
| 3082 LeaveFunction(rv); | 3082 LeaveFunction(rv); |
| 3083 | 3083 |
| 3084 return rv; | 3084 return rv; |
| 3085 } | 3085 } |
| 3086 | 3086 |
| 3087 bool SSLClientSocketNSS::SetReceiveBufferSize(int32 size) { | 3087 int SSLClientSocketNSS::SetReceiveBufferSize(int32 size) { |
| 3088 return transport_->socket()->SetReceiveBufferSize(size); | 3088 return transport_->socket()->SetReceiveBufferSize(size); |
| 3089 } | 3089 } |
| 3090 | 3090 |
| 3091 bool SSLClientSocketNSS::SetSendBufferSize(int32 size) { | 3091 int SSLClientSocketNSS::SetSendBufferSize(int32 size) { |
| 3092 return transport_->socket()->SetSendBufferSize(size); | 3092 return transport_->socket()->SetSendBufferSize(size); |
| 3093 } | 3093 } |
| 3094 | 3094 |
| 3095 int SSLClientSocketNSS::Init() { | 3095 int SSLClientSocketNSS::Init() { |
| 3096 EnterFunction(""); | 3096 EnterFunction(""); |
| 3097 // Initialize the NSS SSL library in a threadsafe way. This also | 3097 // Initialize the NSS SSL library in a threadsafe way. This also |
| 3098 // initializes the NSS base library. | 3098 // initializes the NSS base library. |
| 3099 EnsureNSSSSLInit(); | 3099 EnsureNSSSSLInit(); |
| 3100 if (!NSS_IsInitialized()) | 3100 if (!NSS_IsInitialized()) |
| 3101 return ERR_UNEXPECTED; | 3101 return ERR_UNEXPECTED; |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3612 scoped_refptr<X509Certificate> | 3612 scoped_refptr<X509Certificate> |
| 3613 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { | 3613 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { |
| 3614 return core_->state().server_cert.get(); | 3614 return core_->state().server_cert.get(); |
| 3615 } | 3615 } |
| 3616 | 3616 |
| 3617 ServerBoundCertService* SSLClientSocketNSS::GetServerBoundCertService() const { | 3617 ServerBoundCertService* SSLClientSocketNSS::GetServerBoundCertService() const { |
| 3618 return server_bound_cert_service_; | 3618 return server_bound_cert_service_; |
| 3619 } | 3619 } |
| 3620 | 3620 |
| 3621 } // namespace net | 3621 } // namespace net |
| OLD | NEW |