58#define SHOW_PARM(name, value, format) msg(D_SHOW_PARMS, " " #name " = " format, (value))
59#define SHOW_STR(var) SHOW_PARM(var, (o->var ? o->var : "[UNDEF]"), "'%s'")
60#define SHOW_STR_INLINE(var) \
61 SHOW_PARM(var, o->var##_inline ? "[INLINE]" : (o->var ? o->var : "[UNDEF]"), "'%s'")
62#define SHOW_INT(var) SHOW_PARM(var, o->var, "%d")
63#define SHOW_UINT(var) SHOW_PARM(var, o->var, "%u")
64#define SHOW_INT64(var) SHOW_PARM(var, o->var, "%" PRIi64)
65#define SHOW_UNSIGNED(var) SHOW_PARM(var, o->var, "0x%08x")
66#define SHOW_BOOL(var) SHOW_PARM(var, (o->var ? "ENABLED" : "DISABLED"), "%s");
73 for (
unsigned int i = 0; i < len; ++i)
83 for (
unsigned int i = 0; i < len; ++i)
165 SHOW_STR(ifconfig_pool_persist_filename);
166 SHOW_INT(ifconfig_pool_persist_refresh_freq);
170 SHOW_INT(ifconfig_ipv6_pool_netbits);
200 SHOW_STR(auth_user_pass_verify_script);
201 SHOW_BOOL(auth_user_pass_verify_script_via_file);
291#ifdef ENABLE_FRAGMENT
298 SHOW_INT(explicit_exit_notification);
314 for (
i = 0;
i <
l->len; ++
i)
353#ifdef ENABLE_FEATURE_TUN_PERSIST
375#if defined(ENABLE_DCO)
407#if PASSTOS_CAPABILITY
444#if defined(TARGET_LINUX)
477#ifdef ENABLE_MANAGEMENT
481 SHOW_INT(management_log_history_cache);
482 SHOW_INT(management_echo_buffer_size);
499#ifndef ENABLE_CRYPTO_MBEDTLS
515 SHOW_PARM(
"cert_file",
"EXTERNAL_CERT",
"%s");
525 SHOW_PARM(
"priv_key_file",
"EXTERNAL_PRIVATE_KEY",
"%s");
531#ifndef ENABLE_CRYPTO_MBEDTLS
534#ifdef ENABLE_CRYPTOAPI
590 for (i = 0; i <
MAX_PARMS && o->pkcs11_providers[i] != NULL; i++)
592 SHOW_PARM(pkcs11_providers, o->pkcs11_providers[i],
"%s");
599 SHOW_PARM(pkcs11_protected_authentication,
600 o->pkcs11_protected_authentication[i] ?
"ENABLED" :
"DISABLED",
"%s");
607 SHOW_PARM(pkcs11_private_mode, o->pkcs11_private_mode[i],
"%08x");
614 SHOW_PARM(pkcs11_cert_private, o->pkcs11_cert_private[i] ?
"ENABLED" :
"DISABLED",
char * format_hex_ex(const uint8_t *data, size_t size, size_t maxoutput, unsigned int space_break_flags, const char *separator, struct gc_arena *gc)
Format a binary buffer as a hex string.
static void gc_free(struct gc_arena *a)
Free all allocations in a garbage collection arena.
static struct gc_arena gc_new(void)
Allocate and return a new, empty garbage collection arena.
void print_client_nat_list(const struct client_nat_option_list *list, msglvl_t msglevel)
int daemon(int nochdir, int noclose)
const char * keydirection2ascii(int kd, bool remote, bool humanreadable)
void test_crypto(struct crypto_options *co, struct frame *frame)
Data Channel Cryptography Module.
#define SHA_DIGEST_LENGTH
#define SHA256_DIGEST_LENGTH
void show_dns_options(const struct dns_options *o)
Prints configured DNS options.
static int tls_verify(struct openvpn_plugin_args_func_in const *args)
static bool learn_address_script(const struct multi_context *m, const struct multi_instance *mi, const char *op, const struct mroute_addr *addr)
static bool machine_readable_output
static bool suppress_timestamps
#define PUF_TYPE_ACCEPT
filter type to accept a matching option
#define PUF_TYPE_IGNORE
filter type to ignore a matching option
#define PUF_TYPE_REJECT
filter type to reject and trigger SIGUSR1
@ VLAN_ONLY_UNTAGGED_OR_PRIORITY
static void show_dhcp_option_list(const char *name, const char *const *array, unsigned int len)
#define SHOW_UNSIGNED(var)
void show_settings(const struct options *o)
static void show_connection_entries(const struct options *o)
static void show_dhcp_option_addrs(const char *name, const in_addr_t *array, unsigned int len)
static void show_http_proxy_options(const struct http_proxy_options *o)
static void show_connection_entry(const struct connection_entry *o)
static void show_p2mp_parms(const struct options *o)
static const char * pull_filter_type_name(int type)
#define SHOW_STR_INLINE(var)
static void show_tuntap_options(const struct tuntap_options *o)
static const char * print_vlan_accept(enum vlan_acceptable_frames mode)
#define SHOW_PARM(name, value, format)
static void show_pull_filter_list(const struct pull_filter_list *l)
void plugin_option_list_print(const struct plugin_option_list *list, msglvl_t msglevel)
#define MAX_CUSTOM_HTTP_HEADER
void print_route_options(const struct route_option_list *rol, msglvl_t msglevel)
static void bind_local(struct link_socket *sock, const sa_family_t ai_family)
const char * proto2ascii(int proto, sa_family_t af, bool display_form)
const char * print_in6_addr(struct in6_addr a6, unsigned int flags, struct gc_arena *gc)
const char * print_in_addr_t(in_addr_t addr, unsigned int flags, struct gc_arena *gc)
static bool push_peer_info(struct buffer *buf, struct tls_multi *multi, struct tls_session *session)
Prepares the IV_ and UV_ variables that are part of the exchange to signal the peer's capabilities.
struct local_list * local_list
struct http_proxy_options * http_proxy_options
Structure for reassembling one incoming fragmented packet.
Garbage collection arena used to keep track of dynamically allocated memory.
struct http_custom_header custom_headers[MAX_CUSTOM_HTTP_HEADER]
struct local_entry ** array
int push_ifconfig_ipv6_netbits
struct connection_list * connection_list
enum vlan_acceptable_frames vlan_accept
hash_algo_type verify_hash_algo
struct in6_addr server_network_ipv6
in_addr_t ifconfig_pool_netmask
in_addr_t server_bridge_netmask
struct route_option_list * routes
in_addr_t ifconfig_pool_end
struct push_list push_list
struct tuntap_options tuntap_options
struct verify_hash_list * verify_hash
unsigned int management_flags
struct dns_options dns_options
struct plugin_option_list * plugin_list
in_addr_t push_ifconfig_local
struct pull_filter_list * pull_filter_list
struct in6_addr push_ifconfig_ipv6_remote
in_addr_t server_bridge_pool_start
struct client_nat_option_list * client_nat
struct in6_addr push_ifconfig_ipv6_local
in_addr_t server_bridge_pool_end
in_addr_t ifconfig_pool_start
in_addr_t push_ifconfig_remote_netmask
in_addr_t server_bridge_ip
struct in6_addr ifconfig_ipv6_pool_base
struct pull_filter * head
struct pull_filter * next
in_addr_t nbdd[N_DHCP_ADDR]
in_addr_t ntp[N_DHCP_ADDR]
in_addr_t wins[N_DHCP_ADDR]
in_addr_t dns[N_DHCP_ADDR]
unsigned int domain_search_list_len
const char * domain_search_list[N_SEARCH_LIST_LEN]
struct verify_hash_list * next
uint8_t hash[SHA256_DIGEST_LENGTH]
static bool pkcs11_id_management
static bool dhcp_renew(const struct tuntap *tt)