QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright (c) 2012 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 | #include "net/third_party/quiche/src/quic/tools/quic_simple_crypto_server_stream_helper.h" |
| 6 | |
| 7 | #include "net/third_party/quiche/src/quic/core/quic_utils.h" |
| 8 | |
| 9 | namespace quic { |
| 10 | |
| 11 | QuicSimpleCryptoServerStreamHelper::QuicSimpleCryptoServerStreamHelper( |
| 12 | QuicRandom* random) |
| 13 | : random_(random) {} |
| 14 | |
| 15 | QuicSimpleCryptoServerStreamHelper::~QuicSimpleCryptoServerStreamHelper() = |
| 16 | default; |
| 17 | |
| 18 | QuicConnectionId |
| 19 | QuicSimpleCryptoServerStreamHelper::GenerateConnectionIdForReject( |
| 20 | QuicTransportVersion /*version*/, |
| 21 | QuicConnectionId /*connection_id*/) const { |
| 22 | return QuicUtils::CreateRandomConnectionId(random_); |
| 23 | } |
| 24 | |
| 25 | bool QuicSimpleCryptoServerStreamHelper::CanAcceptClientHello( |
| 26 | const CryptoHandshakeMessage& message, |
| 27 | const QuicSocketAddress& client_address, |
| 28 | const QuicSocketAddress& peer_address, |
| 29 | const QuicSocketAddress& self_address, |
vasilvv | c48c871 | 2019-03-11 13:38:16 -0700 | [diff] [blame] | 30 | std::string* error_details) const { |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 31 | return true; |
| 32 | } |
| 33 | |
| 34 | } // namespace quic |