summaryrefslogtreecommitdiffstats
path: root/net/quic/crypto/crypto_handshake.h
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 01:36:02 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-04 01:36:02 +0000
commitde9b4d94f8962445854b9d79549b1ec96e0498f7 (patch)
tree90230e3ecef6dfca16b57192ea1dc91172bd2ae5 /net/quic/crypto/crypto_handshake.h
parente48ebc75b7bbb9f9006bba395b067fbbf0941b21 (diff)
downloadchromium_src-de9b4d94f8962445854b9d79549b1ec96e0498f7.zip
chromium_src-de9b4d94f8962445854b9d79549b1ec96e0498f7.tar.gz
chromium_src-de9b4d94f8962445854b9d79549b1ec96e0498f7.tar.bz2
Cleanup of OpenSSL/NSS implementation of ProofVerfifier release.
Implemented comments from wtc in CL https://chromiumcodereview.appspot.com/17385010/#ps170001 (Patch Set 12). R=wtc@chromium.org Review URL: https://chromiumcodereview.appspot.com/18033005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/crypto/crypto_handshake.h')
-rw-r--r--net/quic/crypto/crypto_handshake.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/net/quic/crypto/crypto_handshake.h b/net/quic/crypto/crypto_handshake.h
index e702bb6..89e707b 100644
--- a/net/quic/crypto/crypto_handshake.h
+++ b/net/quic/crypto/crypto_handshake.h
@@ -268,6 +268,11 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig {
// (Note: this does not check the chain or signature.)
void SetProofValid();
+ // If the server config or the proof has changed then it needs to be
+ // revalidated. Helper function to keep server_config_valid_ and
+ // generation_counter_ in sync.
+ void SetProofInvalid();
+
const std::string& server_config() const;
const std::string& source_address_token() const;
const std::vector<std::string>& certs() const;
@@ -287,9 +292,10 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig {
bool server_config_valid_; // True if |server_config_| is correctly
// signed and |certs_| has been
// validated.
- uint64 generation_counter_; // Generation counter associated with
- // the |server_config_|, |certs_| and
- // |server_config_sig_| combination.
+ // Generation counter associated with the |server_config_|, |certs_| and
+ // |server_config_sig_| combination. It is incremented whenever we set
+ // server_config_valid_ to false.
+ uint64 generation_counter_;
// scfg contains the cached, parsed value of |server_config|.
mutable scoped_ptr<CryptoHandshakeMessage> scfg_;