blob: a25b872275b17d8cc08a9fc661d89db6db24b77d [file] [log] [blame]
// Copyright (c) 2012 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/tools/quic/quic_simple_crypto_server_stream_helper.h"
namespace net {
QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper(
QuicRandom* random)
: random_(random) {}
QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() {}
QuicConnectionId
QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject(
QuicConnectionId /*connection_id*/) const {
return random_->RandUint64();
}
bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello(
const CryptoHandshakeMessage& message,
const QuicSocketAddress& self_address,
std::string* error_details) const {
return true;
}
} // namespace net