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

Unified Diff: net/quic/crypto/crypto_handshake.h

Issue 14651009: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integer constant is too large for 'unsigned long' type Created 7 years, 7 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/common_cert_set_test.cc ('k') | net/quic/crypto/crypto_handshake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_handshake.h
diff --git a/net/quic/crypto/crypto_handshake.h b/net/quic/crypto/crypto_handshake.h
index 9864d22da09d7c222b4527b404b7e3b66ade214a..624471eb016f923aca09df4d5fdc7e59bd5629ac 100644
--- a/net/quic/crypto/crypto_handshake.h
+++ b/net/quic/crypto/crypto_handshake.h
@@ -18,6 +18,7 @@
namespace net {
+class CommonCertSet;
class KeyExchange;
class ProofVerifier;
class QuicClock;
@@ -134,6 +135,9 @@ struct NET_EXPORT_PRIVATE QuicCryptoNegotiatedParameters {
scoped_ptr<QuicDecrypter> decrypter;
std::string server_config_id;
std::string server_nonce;
+ // cached_certs contains the cached certificates that a client used when
+ // sending a client hello.
+ std::vector<std::string> cached_certs;
};
// QuicCryptoConfig contains common configuration between clients and servers.
@@ -160,6 +164,8 @@ class NET_EXPORT_PRIVATE QuicCryptoConfig {
// Authenticated encryption with associated data (AEAD) algorithms.
CryptoTagVector aead;
+ scoped_ptr<CommonCertSet> common_cert_set_;
+
private:
DISALLOW_COPY_AND_ASSIGN(QuicCryptoConfig);
};
@@ -192,7 +198,7 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig {
bool SetServerConfig(base::StringPiece scfg);
// SetProof stores a certificate chain and signature.
- void SetProof(const std::vector<base::StringPiece>& certs,
+ void SetProof(const std::vector<std::string>& certs,
base::StringPiece signature);
// SetProofValid records that the certificate chain and signature have been
@@ -237,6 +243,7 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig {
// source-address token will be taken from it.
void FillInchoateClientHello(const std::string& server_hostname,
const CachedState* cached,
+ QuicCryptoNegotiatedParameters* out_params,
CryptoHandshakeMessage* out) const;
// FillClientHello sets |out| to be a CHLO message based on the configuration
« no previous file with comments | « net/quic/crypto/common_cert_set_test.cc ('k') | net/quic/crypto/crypto_handshake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698