Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Side by Side Diff: net/socket/ssl_client_socket_nss.cc

Issue 1378613004: Set Token-Binding HTTP header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tb-tls-ext-new
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2483 SSL_CHANNEL_BINDING_TLS_UNIQUE, 2483 SSL_CHANNEL_BINDING_TLS_UNIQUE,
2484 buf, &len, arraysize(buf)); 2484 buf, &len, arraysize(buf));
2485 if (result != SECSuccess) { 2485 if (result != SECSuccess) {
2486 LogFailedNSSFunction(net_log_, "SSL_GetChannelBinding", ""); 2486 LogFailedNSSFunction(net_log_, "SSL_GetChannelBinding", "");
2487 return MapNSSError(PORT_GetError()); 2487 return MapNSSError(PORT_GetError());
2488 } 2488 }
2489 out->assign(reinterpret_cast<char*>(buf), len); 2489 out->assign(reinterpret_cast<char*>(buf), len);
2490 return OK; 2490 return OK;
2491 } 2491 }
2492 2492
2493 std::string SSLClientSocketNSS::GetProvidedTokenBinding() {
2494 return "";
2495 }
2496
2493 SSLClientSocket::NextProtoStatus SSLClientSocketNSS::GetNextProto( 2497 SSLClientSocket::NextProtoStatus SSLClientSocketNSS::GetNextProto(
2494 std::string* proto) const { 2498 std::string* proto) const {
2495 *proto = core_->state().next_proto; 2499 *proto = core_->state().next_proto;
2496 return core_->state().next_proto_status; 2500 return core_->state().next_proto_status;
2497 } 2501 }
2498 2502
2499 int SSLClientSocketNSS::Connect(const CompletionCallback& callback) { 2503 int SSLClientSocketNSS::Connect(const CompletionCallback& callback) {
2500 EnterFunction(""); 2504 EnterFunction("");
2501 DCHECK(transport_.get()); 2505 DCHECK(transport_.get());
2502 // It is an error to create an SSLClientSocket whose context has no 2506 // It is an error to create an SSLClientSocket whose context has no
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 return channel_id_service_; 3172 return channel_id_service_;
3169 } 3173 }
3170 3174
3171 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const { 3175 SSLFailureState SSLClientSocketNSS::GetSSLFailureState() const {
3172 if (completed_handshake_) 3176 if (completed_handshake_)
3173 return SSL_FAILURE_NONE; 3177 return SSL_FAILURE_NONE;
3174 return SSL_FAILURE_UNKNOWN; 3178 return SSL_FAILURE_UNKNOWN;
3175 } 3179 }
3176 3180
3177 } // namespace net 3181 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698