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

Side by Side Diff: net/quic/crypto/crypto_handshake_message.cc

Issue 312553003: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/congestion_control/pacing_sender_test.cc ('k') | net/quic/crypto/crypto_protocol.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/quic/crypto/crypto_handshake_message.h" 5 #include "net/quic/crypto/crypto_handshake_message.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "net/quic/crypto/crypto_framer.h" 9 #include "net/quic/crypto/crypto_framer.h"
10 #include "net/quic/crypto/crypto_protocol.h" 10 #include "net/quic/crypto/crypto_protocol.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 if (it->second.size() == 4) { 249 if (it->second.size() == 4) {
250 uint32 value; 250 uint32 value;
251 memcpy(&value, it->second.data(), sizeof(value)); 251 memcpy(&value, it->second.data(), sizeof(value));
252 ret += base::UintToString(value); 252 ret += base::UintToString(value);
253 done = true; 253 done = true;
254 } 254 }
255 break; 255 break;
256 case kKEXS: 256 case kKEXS:
257 case kAEAD: 257 case kAEAD:
258 case kCGST: 258 case kCGST:
259 case kCOPT:
259 case kLOSS: 260 case kLOSS:
260 case kPDMD: 261 case kPDMD:
261 case kVER: 262 case kVER:
262 // tag lists 263 // tag lists
263 if (it->second.size() % sizeof(QuicTag) == 0) { 264 if (it->second.size() % sizeof(QuicTag) == 0) {
264 for (size_t j = 0; j < it->second.size(); j += sizeof(QuicTag)) { 265 for (size_t j = 0; j < it->second.size(); j += sizeof(QuicTag)) {
265 QuicTag tag; 266 QuicTag tag;
266 memcpy(&tag, it->second.data() + j, sizeof(tag)); 267 memcpy(&tag, it->second.data() + j, sizeof(tag));
267 if (j > 0) { 268 if (j > 0) {
268 ret += ","; 269 ret += ",";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 ret += "0x" + base::HexEncode(it->second.data(), it->second.size()); 309 ret += "0x" + base::HexEncode(it->second.data(), it->second.size());
309 } 310 }
310 ret += "\n"; 311 ret += "\n";
311 } 312 }
312 --indent; 313 --indent;
313 ret += string(2 * indent, ' ') + ">"; 314 ret += string(2 * indent, ' ') + ">";
314 return ret; 315 return ret;
315 } 316 }
316 317
317 } // namespace net 318 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender_test.cc ('k') | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698