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

Unified Diff: net/quic/core/crypto/null_decrypter.cc

Issue 2847753002: Some changes to prepare for endian change for QUIC: 1) Make data reader/write be able to read/write… (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/core/crypto/null_decrypter.cc
diff --git a/net/quic/core/crypto/null_decrypter.cc b/net/quic/core/crypto/null_decrypter.cc
index 5e0ea06f69c3b482ff3dc04715b6c8b52f6671ec..c42fd34e9cdaf206e498967e5496c04a88ffa83e 100644
--- a/net/quic/core/crypto/null_decrypter.cc
+++ b/net/quic/core/crypto/null_decrypter.cc
@@ -43,7 +43,8 @@ bool NullDecrypter::DecryptPacket(QuicVersion version,
char* output,
size_t* output_length,
size_t max_output_length) {
- QuicDataReader reader(ciphertext.data(), ciphertext.length(), perspective_);
+ QuicDataReader reader(ciphertext.data(), ciphertext.length(), perspective_,
+ HOST_BYTE_ORDER);
uint128 hash;
if (!ReadHash(&reader, &hash)) {

Powered by Google App Engine
This is Rietveld 408576698