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

Side by Side Diff: net/quic/core/crypto/quic_crypto_server_config.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 5 #ifndef NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 6 #define NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 QuicSignedServerConfig(); 853 QuicSignedServerConfig();
854 854
855 // TODO(eranm): Have a QuicCryptoProof field instead of signature, cert_sct. 855 // TODO(eranm): Have a QuicCryptoProof field instead of signature, cert_sct.
856 std::string signature; 856 std::string signature;
857 scoped_refptr<ProofSource::Chain> chain; 857 scoped_refptr<ProofSource::Chain> chain;
858 std::string cert_sct; 858 std::string cert_sct;
859 // The server config that is used for this proof (and the rest of the 859 // The server config that is used for this proof (and the rest of the
860 // request). 860 // request).
861 scoped_refptr<QuicCryptoServerConfig::Config> config; 861 scoped_refptr<QuicCryptoServerConfig::Config> config;
862 std::string primary_scid; 862 std::string primary_scid;
863 // Indication whether the Expect-CT header should be sent on the session
864 // this proof relates to (for background, see
865 // https://www.ietf.org/id/draft-stark-expect-ct-00.txt).
866 // NOTE: This field is intentionally independent from the |cert_sct| one
867 // and can be true even if |cert_sct| is empty.
868 // The goal of the Expect-CT header is uncover cases where valid SCTs are
869 // expected to be served, but aren't.
870 bool send_expect_ct_header;
863 871
864 private: 872 private:
865 friend class base::RefCounted<QuicSignedServerConfig>; 873 friend class base::RefCounted<QuicSignedServerConfig>;
866 virtual ~QuicSignedServerConfig(); 874 virtual ~QuicSignedServerConfig();
867 }; 875 };
868 876
869 } // namespace net 877 } // namespace net
870 878
871 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_ 879 #endif // NET_QUIC_CRYPTO_QUIC_CRYPTO_SERVER_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_crypto_proof.cc ('k') | net/quic/core/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698