blob: 6ea303d1df8fe887f4b7d9f858db5810fce65ec8 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// Copyright (c) 2017 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_TEST_TOOLS_FAILING_PROOF_SOURCE_H_
6#define QUICHE_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_
7
8#include "net/third_party/quiche/src/quic/core/crypto/proof_source.h"
QUICHE team6dcf6ab2019-12-11 10:10:51 -08009#include "net/third_party/quiche/src/common/platform/api/quiche_string_piece.h"
QUICHE teama6ef0a62019-03-07 20:34:33 -050010
11namespace quic {
12namespace test {
13
14class FailingProofSource : public ProofSource {
15 public:
16 void GetProof(const QuicSocketAddress& server_address,
danzhd1fc5912020-05-01 15:29:04 -070017 const QuicSocketAddress& client_address,
vasilvvc48c8712019-03-11 13:38:16 -070018 const std::string& hostname,
19 const std::string& server_config,
QUICHE teama6ef0a62019-03-07 20:34:33 -050020 QuicTransportVersion transport_version,
QUICHE team6dcf6ab2019-12-11 10:10:51 -080021 quiche::QuicheStringPiece chlo_hash,
QUICHE teama6ef0a62019-03-07 20:34:33 -050022 std::unique_ptr<Callback> callback) override;
23
24 QuicReferenceCountedPointer<Chain> GetCertChain(
25 const QuicSocketAddress& server_address,
danzhd1fc5912020-05-01 15:29:04 -070026 const QuicSocketAddress& client_address,
vasilvvc48c8712019-03-11 13:38:16 -070027 const std::string& hostname) override;
QUICHE teama6ef0a62019-03-07 20:34:33 -050028
29 void ComputeTlsSignature(
30 const QuicSocketAddress& server_address,
danzhd1fc5912020-05-01 15:29:04 -070031 const QuicSocketAddress& client_address,
vasilvvc48c8712019-03-11 13:38:16 -070032 const std::string& hostname,
QUICHE teama6ef0a62019-03-07 20:34:33 -050033 uint16_t signature_algorithm,
QUICHE team6dcf6ab2019-12-11 10:10:51 -080034 quiche::QuicheStringPiece in,
QUICHE teama6ef0a62019-03-07 20:34:33 -050035 std::unique_ptr<SignatureCallback> callback) override;
nharper037c21b2020-04-23 14:41:35 -070036
nharper1f8289a2020-04-27 11:57:28 -070037 TicketCrypter* GetTicketCrypter() override { return nullptr; }
QUICHE teama6ef0a62019-03-07 20:34:33 -050038};
39
40} // namespace test
41} // namespace quic
42
43#endif // QUICHE_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_