xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/core/crypto/quic_crypto_proof.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef QUICHE_QUIC_CORE_CRYPTO_QUIC_CRYPTO_PROOF_H_
6 #define QUICHE_QUIC_CORE_CRYPTO_QUIC_CRYPTO_PROOF_H_
7 
8 #include <string>
9 
10 #include "quiche/quic/platform/api/quic_export.h"
11 
12 namespace quic {
13 
14 // Contains the crypto-related data provided by ProofSource
15 struct QUICHE_EXPORT QuicCryptoProof {
16   QuicCryptoProof();
17 
18   // Signature generated by ProofSource
19   std::string signature;
20   // SCTList (RFC6962) to be sent to the client, if it supports receiving it.
21   std::string leaf_cert_scts;
22   // Should the Expect-CT header be sent on the connection where the
23   // certificate is used.
24   bool send_expect_ct_header;
25   // Did the selected leaf certificate contain a SubjectAltName that included
26   // the requested SNI.
27   bool cert_matched_sni;
28 };
29 
30 }  // namespace quic
31 
32 #endif  // QUICHE_QUIC_CORE_CRYPTO_QUIC_CRYPTO_PROOF_H_
33