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

Side by Side Diff: net/websockets/websocket_basic_handshake_stream.cc

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Add call to CBS_len() Created 4 years, 3 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
« no previous file with comments | « net/websockets/websocket_basic_handshake_stream.h ('k') | third_party/tlslite/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "net/websockets/websocket_basic_handshake_stream.h" 5 #include "net/websockets/websocket_basic_handshake_stream.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <iterator> 9 #include <iterator>
10 #include <set> 10 #include <set>
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 return false; 440 return false;
441 441
442 return state_.connection()->socket()->GetPeerAddress(endpoint) == OK; 442 return state_.connection()->socket()->GetPeerAddress(endpoint) == OK;
443 } 443 }
444 444
445 void WebSocketBasicHandshakeStream::PopulateNetErrorDetails( 445 void WebSocketBasicHandshakeStream::PopulateNetErrorDetails(
446 NetErrorDetails* /*details*/) { 446 NetErrorDetails* /*details*/) {
447 return; 447 return;
448 } 448 }
449 449
450 Error WebSocketBasicHandshakeStream::GetSignedEKMForTokenBinding( 450 Error WebSocketBasicHandshakeStream::GetTokenBindingSignature(
451 crypto::ECPrivateKey* key, 451 crypto::ECPrivateKey* key,
452 TokenBindingType tb_type,
452 std::vector<uint8_t>* out) { 453 std::vector<uint8_t>* out) {
453 NOTREACHED(); 454 NOTREACHED();
454 return ERR_NOT_IMPLEMENTED; 455 return ERR_NOT_IMPLEMENTED;
455 } 456 }
456 457
457 void WebSocketBasicHandshakeStream::Drain(HttpNetworkSession* session) { 458 void WebSocketBasicHandshakeStream::Drain(HttpNetworkSession* session) {
458 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); 459 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this);
459 drainer->Start(session); 460 drainer->Start(session);
460 // |drainer| will delete itself. 461 // |drainer| will delete itself.
461 } 462 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 } 592 }
592 OnFailure("Error during WebSocket handshake: " + failure_message); 593 OnFailure("Error during WebSocket handshake: " + failure_message);
593 return ERR_INVALID_RESPONSE; 594 return ERR_INVALID_RESPONSE;
594 } 595 }
595 596
596 void WebSocketBasicHandshakeStream::OnFailure(const std::string& message) { 597 void WebSocketBasicHandshakeStream::OnFailure(const std::string& message) {
597 stream_request_->OnFailure(message); 598 stream_request_->OnFailure(message);
598 } 599 }
599 600
600 } // namespace net 601 } // namespace net
OLDNEW
« no previous file with comments | « net/websockets/websocket_basic_handshake_stream.h ('k') | third_party/tlslite/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698