OpenVPN 3 Core Library
Loading...
Searching...
No Matches
fw.hpp
Go to the documentation of this file.
1// OpenVPN -- An application to securely tunnel IP networks
2// over a single port, with support for SSL/TLS-based
3// session authentication and key exchange,
4// packet encryption, packet authentication, and
5// packet compression.
6//
7// Copyright (C) 2012- OpenVPN Inc.
8//
9// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10//
11
12#ifndef OPENVPN_TUN_EXTERN_FW_H
13#define OPENVPN_TUN_EXTERN_FW_H
14
15namespace openvpn {
16
17#if defined(OPENVPN_EXTERNAL_TUN_FACTORY)
18
19struct TunClientFactory;
20class OptionList;
21
22namespace ExternalTun {
23struct Config; // defined in config.hpp
24struct Factory
25{
26 virtual TunClientFactory *new_tun_factory(const Config &conf, const OptionList &opt) = 0;
27 virtual ~Factory() = default;
28};
29} // namespace ExternalTun
30
31#else
32
33namespace ExternalTun {
34struct Factory
35{
36};
37} // namespace ExternalTun
38
39#endif
40} // namespace openvpn
41#endif
The data needed to construct an OpenSSLContext.