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

Unified Diff: net/quic/quic_crypto_client_stream.h

Issue 427313002: Persist the server config that is received via kSCUP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Verify proof from kSCUP message Created 6 years, 3 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 | « no previous file | net/quic/quic_crypto_client_stream.cc » ('j') | net/quic/quic_crypto_client_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_crypto_client_stream.h
diff --git a/net/quic/quic_crypto_client_stream.h b/net/quic/quic_crypto_client_stream.h
index 3be89abca1887db0e6241e6b77ae11860ba3a168..e782c039450f431286ed4dddeacf86f3aeec8780 100644
--- a/net/quic/quic_crypto_client_stream.h
+++ b/net/quic/quic_crypto_client_stream.h
@@ -106,6 +106,9 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
STATE_GET_CHANNEL_ID,
STATE_GET_CHANNEL_ID_COMPLETE,
STATE_RECV_SHLO,
+ STATE_INITIALIZE_SCUP,
+ STATE_VERIFY_PROOF_SCUP,
+ STATE_VERIFY_PROOF_COMPLETE_SCUP,
};
// Handles new server config and optional source-address token provided by the
@@ -117,6 +120,19 @@ class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
// |in| may be NULL if the call did not result from a received message.
void DoHandshakeLoop(const CryptoHandshakeMessage* in);
+ // DoProofVeifyLoop performs a step of the proof verify state machine.
+ void DoProofVeifyLoop();
+
+ // Starts the proof verification. Returns the QuicAsyncStatus returned by the
+ // ProofVerifier's VerifyProof.
+ QuicAsyncStatus DoVerifyProof(QuicCryptoClientConfig::CachedState* cached);
+
+ // If proof is valid then it sets the proof as valid (which persists the
+ // server config) and returns QUIC_NO_ERROR. If not, then it closes
+ // the connection and returns QUIC_PROOF_INVALID.
+ QuicErrorCode DoVerifyProofComplete(
+ QuicCryptoClientConfig::CachedState* cached);
+
// Called to set the proof of |cached| valid. Also invokes the session's
// OnProofValid() method.
void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached);
« no previous file with comments | « no previous file | net/quic/quic_crypto_client_stream.cc » ('j') | net/quic/quic_crypto_client_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698