mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
|
// Copyright (c) 2017 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#include "net/quic/test_tools/failing_proof_source.h"
|
||
|
|
||
|
namespace net {
|
||
|
namespace test {
|
||
|
|
||
|
void FailingProofSource::GetProof(const QuicSocketAddress& server_address,
|
||
|
const std::string& hostname,
|
||
|
const std::string& server_config,
|
||
|
QuicTransportVersion transport_version,
|
||
|
QuicStringPiece chlo_hash,
|
||
|
std::unique_ptr<Callback> callback) {
|
||
|
callback->Run(false, nullptr, QuicCryptoProof(), nullptr);
|
||
|
}
|
||
|
|
||
|
QuicReferenceCountedPointer<ProofSource::Chain>
|
||
|
FailingProofSource::GetCertChain(const QuicSocketAddress& server_address,
|
||
|
const std::string& hostname) {
|
||
|
return QuicReferenceCountedPointer<Chain>();
|
||
|
}
|
||
|
|
||
|
void FailingProofSource::ComputeTlsSignature(
|
||
|
const QuicSocketAddress& server_address,
|
||
|
const std::string& hostname,
|
||
|
uint16_t signature_algorithm,
|
||
|
QuicStringPiece in,
|
||
|
std::unique_ptr<SignatureCallback> callback) {
|
||
|
callback->Run(false, "");
|
||
|
}
|
||
|
|
||
|
} // namespace test
|
||
|
} // namespace net
|