#include <cliopt.hpp>
Definition at line 144 of file cliopt.hpp.
◆ Client
◆ Ptr
◆ ClientOptions()
| openvpn::ClientOptions::ClientOptions |
( |
const OptionList & |
opt, |
|
|
const Config & |
config |
|
) |
| |
|
inline |
◆ asio_work_always_on()
| bool openvpn::ClientOptions::asio_work_always_on |
( |
| ) |
const |
|
inline |
◆ build_peer_info()
◆ check_dco_compatibility()
Checks if there are dco-incompatible options in options list or config has dco-incompatible settings. Return dcoCompatible flag and dcoIncompatibilityReason string property (if applicable)
Definition at line 602 of file cliopt.hpp.
◆ check_for_incompatible_options()
| void openvpn::ClientOptions::check_for_incompatible_options |
( |
const OptionList & |
opt | ) |
|
|
inline |
◆ client_config()
Return a client configuration to be used as configuration for the control layer.
Will basically copy a subset of this configuration object to a new smaller configuration object
Definition at line 1149 of file cliopt.hpp.
◆ conn_timeout()
| int openvpn::ClientOptions::conn_timeout |
( |
| ) |
const |
|
inline |
◆ events()
◆ finalize()
| void openvpn::ClientOptions::finalize |
( |
const bool |
disconnected | ) |
|
|
inline |
◆ handle_unused_options()
| void openvpn::ClientOptions::handle_unused_options |
( |
const OptionList & |
opt | ) |
|
|
inline |
This groups all the options that OpenVPN 2.x supports that the OpenVPN v3 client does not support into a number of different groups and warns or errors out if with a specific message for that group.
If any option that is not touched() after going through all groups the function will print them as unknown unsupported option(s) and error out
Definition at line 938 of file cliopt.hpp.
◆ lifecycle()
◆ load_transport_config()
| std::string openvpn::ClientOptions::load_transport_config |
( |
| ) |
|
|
inlineprivate |
◆ need_creds()
| bool openvpn::ClientOptions::need_creds |
( |
| ) |
const |
|
inline |
◆ next()
◆ pause_on_connection_timeout()
| bool openvpn::ClientOptions::pause_on_connection_timeout |
( |
| ) |
|
|
inline |
◆ proto_config()
◆ proto_config_cached()
◆ remote_list_precache()
◆ remote_reset_cache_item()
| void openvpn::ClientOptions::remote_reset_cache_item |
( |
| ) |
|
|
inline |
◆ retry_on_auth_failed()
| bool openvpn::ClientOptions::retry_on_auth_failed |
( |
| ) |
const |
|
inline |
◆ server_poll_timeout()
| Time::Duration openvpn::ClientOptions::server_poll_timeout |
( |
| ) |
const |
|
inline |
◆ server_poll_timeout_enabled()
| bool openvpn::ClientOptions::server_poll_timeout_enabled |
( |
| ) |
const |
|
inline |
◆ showOptionsByFunction()
template<typename T >
| void openvpn::ClientOptions::showOptionsByFunction |
( |
const OptionList & |
opt, |
|
|
T |
func, |
|
|
const std::string & |
message, |
|
|
bool |
fatal, |
|
|
OptionErrors & |
errors |
|
) |
| |
|
inline |
◆ showUnusedOptionsByList()
| void openvpn::ClientOptions::showUnusedOptionsByList |
( |
const OptionList & |
optlist, |
|
|
std::unordered_set< std::string > |
option_set, |
|
|
const std::string & |
message, |
|
|
bool |
fatal, |
|
|
OptionErrors & |
errors |
|
) |
| |
|
inline |
◆ stats()
◆ stats_ptr()
◆ submit_creds()
◆ update_now()
| void openvpn::ClientOptions::update_now |
( |
| ) |
|
|
inline |
◆ alt_proxy
◆ asio_work_always_on_
| bool openvpn::ClientOptions::asio_work_always_on_ |
|
private |
◆ autologin
| bool openvpn::ClientOptions::autologin |
|
private |
◆ autologin_sessions
| bool openvpn::ClientOptions::autologin_sessions |
|
private |
◆ cli_events
◆ cli_stats
◆ client_lifecycle
◆ clientconf
◆ cp_main
◆ cp_relay
◆ creds
◆ creds_locked
| bool openvpn::ClientOptions::creds_locked |
|
private |
◆ dco
◆ dco_incompatible_opts
| std::unordered_set<std::string> openvpn::ClientOptions::dco_incompatible_opts |
|
inlinestatic |
Initial value:= {
"http-proxy",
"compress",
"comp-lzo"}
Definition at line 593 of file cliopt.hpp.
◆ frame
◆ http_proxy_options
◆ layer
| Layer openvpn::ClientOptions::layer |
|
private |
◆ now_
| Time openvpn::ClientOptions::now_ |
|
private |
◆ prng
◆ proto_context_options
◆ push_base
◆ pushed_options_filter
◆ reconnect_notify
◆ remote_list
◆ rng
◆ server_addr_float
| bool openvpn::ClientOptions::server_addr_float |
|
private |
◆ server_poll_timeout_
| unsigned int openvpn::ClientOptions::server_poll_timeout_ |
|
private |
◆ settings_feature_not_implemented_fatal
| std::unordered_set<std::string> openvpn::ClientOptions::settings_feature_not_implemented_fatal |
Initial value:= {
"askpass",
"capath",
"cd",
"chroot",
"client-nat",
"cryptoapicert",
"daemon",
"daemon",
"errors-to-stderr",
"gremlin",
"lladdr",
"log",
"log",
"log-append",
"management",
"memstats",
"msg-channel",
"ping-timer-rem",
"single-session",
"socks-proxy",
"status",
"status-version",
"syslog",
"tls-server",
"verify-hash",
"win-sys",
"writepid",
"x509-username-field",
}
Definition at line 766 of file cliopt.hpp.
◆ settings_feature_not_implemented_warn
| std::unordered_set<std::string> openvpn::ClientOptions::settings_feature_not_implemented_warn |
Initial value:= {
"allow-pull-fqdn",
"bind",
"local",
"lport",
"mlock",
"mtu-disc",
"mtu-test",
"persist-local-ip",
"persist-remote-ip",
"shaper",
"tls-exit",
}
Definition at line 798 of file cliopt.hpp.
◆ settings_ignoreSilently
| std::unordered_set<std::string> openvpn::ClientOptions::settings_ignoreSilently |
Initial value:= {
"ecdh-curve",
"fast-io",
"max-routes",
"mute-replay-warnings",
"nobind",
"prng",
"rcvbuf",
"replay-persist",
"script-security",
"sndbuf",
"tmp-dir",
"tun-ipv6",
"txqueuelen",
"verb"}
Definition at line 865 of file cliopt.hpp.
◆ settings_ignoreWithWarning
| std::unordered_set<std::string> openvpn::ClientOptions::settings_ignoreWithWarning |
◆ settings_pushonlyoptions
| std::unordered_set<std::string> openvpn::ClientOptions::settings_pushonlyoptions |
Initial value:= {
"auth-token",
"auth-token-user",
"echo",
"parameter",
"ping",
"ping-exit",
"ping-restart",
"key-derivation",
"peer-id",
"protocol-flags",
"ifconfig",
"ifconfig-ipv6",
"topology",
"route-gateway"}
Definition at line 814 of file cliopt.hpp.
◆ settings_removedOptions
| std::unordered_set<std::string> openvpn::ClientOptions::settings_removedOptions |
Initial value:= {
"mtu-dynamic", "no-replay", "no-name-remapping", "compat-names", "ncp-disable", "no-iv"}
Definition at line 862 of file cliopt.hpp.
◆ settings_script_plugin_feature
| std::unordered_set<std::string> openvpn::ClientOptions::settings_script_plugin_feature |
Initial value:= {
"down",
"down-pre",
"ifconfig-noexec",
"ipchange",
"learn-address",
"plugin",
"route-noexec",
"route-pre-down",
"route-up",
"setenv-safe",
"tls-export-cert",
"tls-verify",
"up",
"up-delay",
"x509-track"}
Definition at line 831 of file cliopt.hpp.
◆ settings_serverOnlyOptions
| std::unordered_set<std::string> openvpn::ClientOptions::settings_serverOnlyOptions |
◆ settings_standalone_options
| std::unordered_set<std::string> openvpn::ClientOptions::settings_standalone_options |
Initial value:= {
"genkey",
"mktun",
"rmtun",
"show-ciphers",
"show-curves",
"show-digests",
"show-engines",
"show-groups",
"show-tls",
"test-crypto"}
Definition at line 849 of file cliopt.hpp.
◆ socket_protect
◆ synchronous_dns_lookup
| bool openvpn::ClientOptions::synchronous_dns_lookup |
|
private |
◆ tcp_queue_limit
| unsigned int openvpn::ClientOptions::tcp_queue_limit |
|
private |
◆ transport_factory
◆ tun_factory
◆ userlocked_username
| std::string openvpn::ClientOptions::userlocked_username |
|
private |
The documentation for this class was generated from the following file: