1
#include "source/extensions/quic/crypto_stream/envoy_quic_crypto_server_stream.h"
2

            
3
namespace Envoy {
4
namespace Quic {
5

            
6
std::unique_ptr<quic::QuicCryptoServerStreamBase>
7
EnvoyQuicCryptoServerStreamFactoryImpl::createEnvoyQuicCryptoServerStream(
8
    const quic::QuicCryptoServerConfig* crypto_config,
9
    quic::QuicCompressedCertsCache* compressed_certs_cache, quic::QuicSession* session,
10
    quic::QuicCryptoServerStreamBase::Helper* helper,
11
    // Though this extension doesn't use the two parameters below, they might be used by
12
    // downstreams. Do not remove them.
13
    OptRef<const Network::DownstreamTransportSocketFactory> /*transport_socket_factory*/,
14
2968
    Envoy::Event::Dispatcher& /*dispatcher*/) {
15
2968
  return quic::CreateCryptoServerStream(crypto_config, compressed_certs_cache, session, helper);
16
2968
}
17

            
18
REGISTER_FACTORY(EnvoyQuicCryptoServerStreamFactoryImpl,
19
                 EnvoyQuicCryptoServerStreamFactoryInterface);
20

            
21
} // namespace Quic
22
} // namespace Envoy