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

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

Issue 22647002: Add support to QUIC for QUIC_VERSION_8: for RSA-PSS signatures, set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 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/crypto/crypto_server_config.cc
===================================================================
--- net/quic/crypto/crypto_server_config.cc (revision 216255)
+++ net/quic/crypto/crypto_server_config.cc (working copy)
@@ -304,6 +304,7 @@
QuicErrorCode QuicCryptoServerConfig::ProcessClientHello(
const CryptoHandshakeMessage& client_hello,
+ QuicVersion version,
QuicGuid guid,
const IPEndPoint& client_ip,
const QuicClock* clock,
@@ -358,7 +359,8 @@
!info.client_nonce_well_formed ||
!info.unique ||
!requested_config.get()) {
- BuildRejection(primary_config, client_hello, info, rand, out);
+ BuildRejection(version, primary_config.get(), client_hello, info, rand,
+ out);
return QUIC_NO_ERROR;
}
@@ -662,6 +664,7 @@
}
void QuicCryptoServerConfig::BuildRejection(
+ QuicVersion version,
const scoped_refptr<Config>& config,
const CryptoHandshakeMessage& client_hello,
const ClientHelloInfo& info,
@@ -705,8 +708,9 @@
const vector<string>* certs;
string signature;
- if (!proof_source_->GetProof(info.sni.as_string(), config->serialized,
- x509_ecdsa_supported, &certs, &signature)) {
+ if (!proof_source_->GetProof(version, info.sni.as_string(),
+ config->serialized, x509_ecdsa_supported,
+ &certs, &signature)) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698