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

Unified Diff: net/quic/crypto/quic_crypto_client_config.cc

Issue 1818393003: QUIC - Persist "Hash of the CHLO message" and "Signed timestamp of the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Default chlo_hash to empty string for old disk cache data Created 4 years, 9 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
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.h ('k') | net/quic/crypto/quic_server_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_crypto_client_config.cc
diff --git a/net/quic/crypto/quic_crypto_client_config.cc b/net/quic/crypto/quic_crypto_client_config.cc
index 0467ff55f0a3f08bde6abcd08e2f343baf755ed6..2f049d13c0c36d143bb543e375f22e35d2d8fb04 100644
--- a/net/quic/crypto/quic_crypto_client_config.cc
+++ b/net/quic/crypto/quic_crypto_client_config.cc
@@ -253,7 +253,7 @@ bool QuicCryptoClientConfig::CachedState::Initialize(
StringPiece server_config,
StringPiece source_address_token,
const vector<string>& certs,
- const string& cert_sct,
+ StringPiece cert_sct,
StringPiece chlo_hash,
StringPiece signature,
QuicWallTime now) {
@@ -272,11 +272,11 @@ bool QuicCryptoClientConfig::CachedState::Initialize(
return false;
}
- chlo_hash.CopyToString(&chlo_hash_);
signature.CopyToString(&server_config_sig_);
source_address_token.CopyToString(&source_address_token_);
+ cert_sct.CopyToString(&cert_sct_);
+ chlo_hash.CopyToString(&chlo_hash_);
certs_ = certs;
- cert_sct_ = cert_sct;
return true;
}
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.h ('k') | net/quic/crypto/quic_server_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698