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

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

Issue 2516433002: Minor refactors to enable sending an Expect-CT header more easily. (Closed)
Patch Set: Created 4 years, 1 month 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/core/crypto/quic_crypto_server_config.h ('k') | net/quic/core/quic_crypto_server_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/quic_crypto_server_config.cc
diff --git a/net/quic/core/crypto/quic_crypto_server_config.cc b/net/quic/core/crypto/quic_crypto_server_config.cc
index e70c4f2b5ff46d0aaace8e0c5c66fa4afe877c7c..7c92ffad6deda9e457c65f5e85eb58ecfcc375c5 100644
--- a/net/quic/core/crypto/quic_crypto_server_config.cc
+++ b/net/quic/core/crypto/quic_crypto_server_config.cc
@@ -631,6 +631,7 @@ class QuicCryptoServerConfig::ProcessClientHelloCallback
signed_config_->chain = chain;
signed_config_->signature = proof.signature;
signed_config_->cert_sct = proof.leaf_cert_scts;
+ signed_config_->send_expect_ct_header = proof.send_expect_ct_header;
}
config_->ProcessClientHelloAfterGetProof(
!ok, std::move(details), *validate_chlo_result_, reject_only_,
@@ -1232,6 +1233,7 @@ class QuicCryptoServerConfig::EvaluateClientHelloCallback
signed_config_->chain = chain;
signed_config_->signature = proof.signature;
signed_config_->cert_sct = proof.leaf_cert_scts;
+ signed_config_->send_expect_ct_header = proof.send_expect_ct_header;
}
config_.EvaluateClientHelloAfterGetProof(
found_error_, server_ip_, version_, requested_config_, primary_config_,
@@ -2281,7 +2283,8 @@ QuicCryptoServerConfig::Config::Config()
QuicCryptoServerConfig::Config::~Config() {
}
-QuicSignedServerConfig::QuicSignedServerConfig() {}
+QuicSignedServerConfig::QuicSignedServerConfig()
+ : send_expect_ct_header(false) {}
QuicSignedServerConfig::~QuicSignedServerConfig() {}
} // namespace net
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.h ('k') | net/quic/core/quic_crypto_server_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698