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

Unified Diff: net/quic/chromium/crypto/proof_verifier_chromium.cc

Issue 2401363004: relnote: Deprecate flag quic_disable_pre_32 (Closed)
Patch Set: remove unused LoadTestCert method Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/chromium/crypto/proof_test_chromium.cc ('k') | net/quic/core/crypto/crypto_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/crypto/proof_verifier_chromium.cc
diff --git a/net/quic/chromium/crypto/proof_verifier_chromium.cc b/net/quic/chromium/crypto/proof_verifier_chromium.cc
index e0a61ec0bdc2cb499200a3c324731fdf9c997a08..1a4582f29b76a42e0b99437943c11b3eef7bfb32 100644
--- a/net/quic/chromium/crypto/proof_verifier_chromium.cc
+++ b/net/quic/chromium/crypto/proof_verifier_chromium.cc
@@ -515,19 +515,13 @@ bool ProofVerifierChromium::Job::VerifySignature(const string& signed_data,
return false;
}
- if (quic_version <= QUIC_VERSION_30) {
- verifier.VerifyUpdate(
- reinterpret_cast<const uint8_t*>(kProofSignatureLabelOld),
- sizeof(kProofSignatureLabelOld));
- } else {
- verifier.VerifyUpdate(
- reinterpret_cast<const uint8_t*>(kProofSignatureLabel),
- sizeof(kProofSignatureLabel));
- uint32_t len = chlo_hash.length();
- verifier.VerifyUpdate(reinterpret_cast<const uint8_t*>(&len), sizeof(len));
- verifier.VerifyUpdate(reinterpret_cast<const uint8_t*>(chlo_hash.data()),
- len);
- }
+ verifier.VerifyUpdate(
+ reinterpret_cast<const uint8_t*>(kProofSignatureLabel),
+ sizeof(kProofSignatureLabel));
+ uint32_t len = chlo_hash.length();
+ verifier.VerifyUpdate(reinterpret_cast<const uint8_t*>(&len), sizeof(len));
+ verifier.VerifyUpdate(reinterpret_cast<const uint8_t*>(chlo_hash.data()),
+ len);
verifier.VerifyUpdate(reinterpret_cast<const uint8_t*>(signed_data.data()),
signed_data.size());
« no previous file with comments | « net/quic/chromium/crypto/proof_test_chromium.cc ('k') | net/quic/core/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698