OpenVPN
Data Structures | Macros | Functions | Variables
options.h File Reference
#include "basic.h"
#include "common.h"
#include "mtu.h"
#include "route.h"
#include "tun.h"
#include "socket.h"
#include "plugin.h"
#include "manage.h"
#include "proxy.h"
#include "comp.h"
#include "pushlist.h"
#include "clinat.h"
#include "crypto_backend.h"
Include dependency graph for options.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  options_pre_pull
 
struct  connection_entry
 
struct  remote_entry
 
struct  connection_list
 
struct  remote_list
 
struct  remote_host_store
 
struct  options
 

Macros

#define MAX_PARMS   16
 
#define OPTION_PARM_SIZE   256
 
#define OPTION_LINE_SIZE   256
 
#define CE_DISABLED   (1<<0)
 
#define CE_MAN_QUERY_PROXY   (1<<1)
 
#define CE_MAN_QUERY_REMOTE_UNDEF   0
 
#define CE_MAN_QUERY_REMOTE_QUERY   1
 
#define CE_MAN_QUERY_REMOTE_ACCEPT   2
 
#define CE_MAN_QUERY_REMOTE_MOD   3
 
#define CE_MAN_QUERY_REMOTE_SKIP   4
 
#define CE_MAN_QUERY_REMOTE_MASK   (0x07)
 
#define CE_MAN_QUERY_REMOTE_SHIFT   (2)
 
#define CONNECTION_LIST_SIZE   64
 
#define RH_HOST_LEN   80
 
#define RH_PORT_LEN   20
 
#define MODE_POINT_TO_POINT   0
 
#define MODE_SERVER   1
 
#define PING_UNDEF   0
 
#define PING_EXIT   1
 
#define PING_RESTART   2
 
#define SF_NOPOOL   (1<<0)
 
#define SF_TCP_NODELAY_HELPER   (1<<1)
 
#define SF_NO_PUSH_ROUTE_GATEWAY   (1<<2)
 
#define streq(x, y)   (!strcmp((x), (y)))
 
#define OPT_P_GENERAL   (1<<0)
 
#define OPT_P_UP   (1<<1)
 
#define OPT_P_ROUTE   (1<<2)
 
#define OPT_P_IPWIN32   (1<<3)
 
#define OPT_P_SCRIPT   (1<<4)
 
#define OPT_P_SETENV   (1<<5)
 
#define OPT_P_SHAPER   (1<<6)
 
#define OPT_P_TIMER   (1<<7)
 
#define OPT_P_PERSIST   (1<<8)
 
#define OPT_P_PERSIST_IP   (1<<9)
 
#define OPT_P_COMP   (1<<10) /* TODO */
 
#define OPT_P_MESSAGES   (1<<11)
 
#define OPT_P_NCP   (1<<12)
 Negotiable crypto parameters. More...
 
#define OPT_P_TLS_PARMS   (1<<13) /* TODO */
 
#define OPT_P_MTU   (1<<14) /* TODO */
 
#define OPT_P_NICE   (1<<15)
 
#define OPT_P_PUSH   (1<<16)
 
#define OPT_P_INSTANCE   (1<<17)
 
#define OPT_P_CONFIG   (1<<18)
 
#define OPT_P_EXPLICIT_NOTIFY   (1<<19)
 
#define OPT_P_ECHO   (1<<20)
 
#define OPT_P_INHERIT   (1<<21)
 
#define OPT_P_ROUTE_EXTRAS   (1<<22)
 
#define OPT_P_PULL_MODE   (1<<23)
 
#define OPT_P_PLUGIN   (1<<24)
 
#define OPT_P_SOCKBUF   (1<<25)
 
#define OPT_P_SOCKFLAGS   (1<<26)
 
#define OPT_P_CONNECTION   (1<<27)
 
#define OPT_P_PEER_ID   (1<<28)
 
#define OPT_P_DEFAULT   (~(OPT_P_INSTANCE|OPT_P_PULL_MODE))
 
#define PULL_DEFINED(opt)   ((opt)->pull)
 
#define PUSH_DEFINED(opt)   ((opt)->push_list)
 
#define ROUTE_OPTION_FLAGS(o)   ((o)->route_method & ROUTE_METHOD_MASK)
 
#define SHAPER_DEFINED(opt)   (false)
 
#define PLUGIN_OPTION_LIST(opt)   ((opt)->plugin_list)
 
#define MAN_CLIENT_AUTH_ENABLED(opt)   (false)
 
#define AR_NONE   0
 
#define AR_INTERACT   1
 
#define AR_NOINTERACT   2
 

Functions

void parse_argv (struct options *options, const int argc, char *argv[], const int msglevel, const unsigned int permission_mask, unsigned int *option_types_found, struct env_set *es)
 
void notnull (const char *arg, const char *description)
 
void usage_small (void)
 
void show_library_versions (const unsigned int flags)
 
void show_windows_version (const unsigned int flags)
 
void init_options (struct options *o, const bool init_gc)
 
void uninit_options (struct options *o)
 
void setenv_settings (struct env_set *es, const struct options *o)
 
void show_settings (const struct options *o)
 
bool string_defined_equal (const char *s1, const char *s2)
 
const char * options_string_version (const char *s, struct gc_arena *gc)
 
char * options_string (const struct options *o, const struct frame *frame, struct tuntap *tt, bool remote, struct gc_arena *gc)
 
bool options_cmp_equal_safe (char *actual, const char *expected, size_t actual_n)
 
void options_warning_safe (char *actual, const char *expected, size_t actual_n)
 
bool options_cmp_equal (char *actual, const char *expected)
 
void options_warning (char *actual, const char *expected)
 
char * options_string_extract_option (const char *options_string, const char *opt_name, struct gc_arena *gc)
 Given an OpenVPN options string, extract the value of an option. More...
 
void options_postprocess (struct options *options)
 
void pre_pull_save (struct options *o)
 
void pre_pull_restore (struct options *o, struct gc_arena *gc)
 
bool apply_push_options (struct options *options, struct buffer *buf, unsigned int permission_mask, unsigned int *option_types_found, struct env_set *es)
 
void options_detach (struct options *o)
 
void options_server_import (struct options *o, const char *filename, int msglevel, unsigned int permission_mask, unsigned int *option_types_found, struct env_set *es)
 
void pre_pull_default (struct options *o)
 
void rol_check_alloc (struct options *options)
 
int parse_line (const char *line, char *p[], const int n, const char *file, const int line_num, int msglevel, struct gc_arena *gc)
 
int parse_topology (const char *str, const int msglevel)
 
const char * print_topology (const int topology)
 
int auth_retry_get (void)
 
bool auth_retry_set (const int msglevel, const char *option)
 
const char * auth_retry_print (void)
 
void options_string_import (struct options *options, const char *config, const int msglevel, const unsigned int permission_mask, unsigned int *option_types_found, struct env_set *es)
 

Variables

const char title_string []
 

Macro Definition Documentation

◆ AR_INTERACT

#define AR_INTERACT   1

◆ AR_NOINTERACT

#define AR_NOINTERACT   2

◆ AR_NONE

#define AR_NONE   0

◆ CE_DISABLED

#define CE_DISABLED   (1<<0)

◆ CE_MAN_QUERY_PROXY

#define CE_MAN_QUERY_PROXY   (1<<1)

Definition at line 124 of file options.h.

Referenced by ce_management_query_proxy(), and management_callback_proxy_cmd().

◆ CE_MAN_QUERY_REMOTE_ACCEPT

#define CE_MAN_QUERY_REMOTE_ACCEPT   2

Definition at line 127 of file options.h.

Referenced by management_callback_remote_cmd().

◆ CE_MAN_QUERY_REMOTE_MASK

#define CE_MAN_QUERY_REMOTE_MASK   (0x07)

Definition at line 130 of file options.h.

Referenced by ce_management_query_remote(), and management_callback_remote_cmd().

◆ CE_MAN_QUERY_REMOTE_MOD

#define CE_MAN_QUERY_REMOTE_MOD   3

Definition at line 128 of file options.h.

Referenced by management_callback_remote_cmd().

◆ CE_MAN_QUERY_REMOTE_QUERY

#define CE_MAN_QUERY_REMOTE_QUERY   1

Definition at line 126 of file options.h.

Referenced by ce_management_query_remote(), and management_callback_remote_cmd().

◆ CE_MAN_QUERY_REMOTE_SHIFT

#define CE_MAN_QUERY_REMOTE_SHIFT   (2)

Definition at line 131 of file options.h.

Referenced by ce_management_query_remote(), and management_callback_remote_cmd().

◆ CE_MAN_QUERY_REMOTE_SKIP

#define CE_MAN_QUERY_REMOTE_SKIP   4

Definition at line 129 of file options.h.

Referenced by ce_management_query_remote(), and management_callback_remote_cmd().

◆ CE_MAN_QUERY_REMOTE_UNDEF

#define CE_MAN_QUERY_REMOTE_UNDEF   0

Definition at line 125 of file options.h.

◆ CONNECTION_LIST_SIZE

#define CONNECTION_LIST_SIZE   64

Definition at line 157 of file options.h.

Referenced by alloc_connection_entry(), and alloc_remote_entry().

◆ MAN_CLIENT_AUTH_ENABLED

#define MAN_CLIENT_AUTH_ENABLED (   opt)    (false)

Definition at line 708 of file options.h.

Referenced by options_postprocess_verify_ce().

◆ MAX_PARMS

#define MAX_PARMS   16

◆ MODE_POINT_TO_POINT

#define MODE_POINT_TO_POINT   0

◆ MODE_SERVER

#define MODE_SERVER   1

◆ OPT_P_COMP

#define OPT_P_COMP   (1<<10) /* TODO */

◆ OPT_P_CONFIG

#define OPT_P_CONFIG   (1<<18)

Definition at line 658 of file options.h.

Referenced by add_option(), and multi_connection_established().

◆ OPT_P_CONNECTION

#define OPT_P_CONNECTION   (1<<27)

Definition at line 667 of file options.h.

Referenced by add_option(), and verify_permission().

◆ OPT_P_DEFAULT

#define OPT_P_DEFAULT   (~(OPT_P_INSTANCE|OPT_P_PULL_MODE))

Definition at line 670 of file options.h.

Referenced by open_plugins(), and openvpn_main().

◆ OPT_P_ECHO

#define OPT_P_ECHO   (1<<20)

Definition at line 660 of file options.h.

Referenced by add_option(), multi_connection_established(), and pull_permission_mask().

◆ OPT_P_EXPLICIT_NOTIFY

#define OPT_P_EXPLICIT_NOTIFY   (1<<19)

Definition at line 659 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_GENERAL

#define OPT_P_GENERAL   (1<<0)

Definition at line 640 of file options.h.

Referenced by add_option().

◆ OPT_P_INHERIT

#define OPT_P_INHERIT   (1<<21)

Definition at line 661 of file options.h.

Referenced by add_option(), and multi_connection_established().

◆ OPT_P_INSTANCE

#define OPT_P_INSTANCE   (1<<17)

Definition at line 657 of file options.h.

Referenced by add_option(), and multi_connection_established().

◆ OPT_P_IPWIN32

#define OPT_P_IPWIN32   (1<<3)

Definition at line 643 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_MESSAGES

#define OPT_P_MESSAGES   (1<<11)

Definition at line 651 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_MTU

#define OPT_P_MTU   (1<<14) /* TODO */

Definition at line 654 of file options.h.

Referenced by add_option().

◆ OPT_P_NCP

#define OPT_P_NCP   (1<<12)

Negotiable crypto parameters.

Definition at line 652 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_NICE

#define OPT_P_NICE   (1<<15)

Definition at line 655 of file options.h.

Referenced by add_option().

◆ OPT_P_PEER_ID

#define OPT_P_PEER_ID   (1<<28)

Definition at line 668 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_PERSIST

#define OPT_P_PERSIST   (1<<8)

Definition at line 648 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_PERSIST_IP

#define OPT_P_PERSIST_IP   (1<<9)

Definition at line 649 of file options.h.

Referenced by add_option().

◆ OPT_P_PLUGIN

#define OPT_P_PLUGIN   (1<<24)

Definition at line 664 of file options.h.

Referenced by add_option(), and open_plugins().

◆ OPT_P_PULL_MODE

#define OPT_P_PULL_MODE   (1<<23)

Definition at line 663 of file options.h.

Referenced by add_option(), pull_permission_mask(), and verify_permission().

◆ OPT_P_PUSH

#define OPT_P_PUSH   (1<<16)

Definition at line 656 of file options.h.

Referenced by add_option(), and multi_connection_established().

◆ OPT_P_ROUTE

#define OPT_P_ROUTE   (1<<2)

Definition at line 642 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_ROUTE_EXTRAS

#define OPT_P_ROUTE_EXTRAS   (1<<22)

Definition at line 662 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_SCRIPT

#define OPT_P_SCRIPT   (1<<4)

Definition at line 644 of file options.h.

Referenced by add_option().

◆ OPT_P_SETENV

#define OPT_P_SETENV   (1<<5)

Definition at line 645 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_SHAPER

#define OPT_P_SHAPER   (1<<6)

Definition at line 646 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_SOCKBUF

#define OPT_P_SOCKBUF   (1<<25)

Definition at line 665 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPT_P_SOCKFLAGS

#define OPT_P_SOCKFLAGS   (1<<26)

◆ OPT_P_TIMER

#define OPT_P_TIMER   (1<<7)

◆ OPT_P_TLS_PARMS

#define OPT_P_TLS_PARMS   (1<<13) /* TODO */

Definition at line 653 of file options.h.

Referenced by add_option().

◆ OPT_P_UP

#define OPT_P_UP   (1<<1)

Definition at line 641 of file options.h.

Referenced by add_option(), do_deferred_options(), and pull_permission_mask().

◆ OPTION_LINE_SIZE

#define OPTION_LINE_SIZE   256

◆ OPTION_PARM_SIZE

#define OPTION_PARM_SIZE   256

◆ PING_EXIT

#define PING_EXIT   1

Definition at line 269 of file options.h.

Referenced by add_option(), and check_ping_restart_dowork().

◆ PING_RESTART

#define PING_RESTART   2

◆ PING_UNDEF

#define PING_UNDEF   0

Definition at line 268 of file options.h.

Referenced by update_options_ce_post().

◆ PLUGIN_OPTION_LIST

#define PLUGIN_OPTION_LIST (   opt)    ((opt)->plugin_list)

Definition at line 700 of file options.h.

Referenced by options_postprocess_verify_ce().

◆ PULL_DEFINED

#define PULL_DEFINED (   opt)    ((opt)->pull)

Definition at line 673 of file options.h.

Referenced by do_up(), init_instance(), and options_string().

◆ PUSH_DEFINED

#define PUSH_DEFINED (   opt)    ((opt)->push_list)

Definition at line 675 of file options.h.

◆ RH_HOST_LEN

#define RH_HOST_LEN   80

Definition at line 174 of file options.h.

Referenced by management_callback_remote_cmd().

◆ RH_PORT_LEN

#define RH_PORT_LEN   20

Definition at line 176 of file options.h.

Referenced by management_callback_remote_cmd().

◆ ROUTE_OPTION_FLAGS

#define ROUTE_OPTION_FLAGS (   o)    ((o)->route_method & ROUTE_METHOD_MASK)

Definition at line 688 of file options.h.

Referenced by do_close_tun(), and do_route().

◆ SF_NO_PUSH_ROUTE_GATEWAY

#define SF_NO_PUSH_ROUTE_GATEWAY   (1<<2)

Definition at line 402 of file options.h.

Referenced by add_option(), and helper_client_server().

◆ SF_NOPOOL

#define SF_NOPOOL   (1<<0)

Definition at line 400 of file options.h.

Referenced by add_option(), and helper_client_server().

◆ SF_TCP_NODELAY_HELPER

#define SF_TCP_NODELAY_HELPER   (1<<1)

Definition at line 401 of file options.h.

Referenced by add_option(), helper_tcp_nodelay(), and options_postprocess_verify_ce().

◆ SHAPER_DEFINED

#define SHAPER_DEFINED (   opt)    (false)

Definition at line 696 of file options.h.

Referenced by init_instance().

◆ streq

#define streq (   x,
 
)    (!strcmp((x), (y)))

Function Documentation

◆ apply_push_options()

bool apply_push_options ( struct options options,
struct buffer buf,
unsigned int  permission_mask,
unsigned int *  option_types_found,
struct env_set es 
)

◆ auth_retry_get()

int auth_retry_get ( void  )

◆ auth_retry_print()

const char* auth_retry_print ( void  )

Definition at line 4069 of file options.c.

References AR_INTERACT, AR_NOINTERACT, AR_NONE, and global_auth_retry.

Referenced by man_dispatch_command().

◆ auth_retry_set()

bool auth_retry_set ( const int  msglevel,
const char *  option 
)

Definition at line 4046 of file options.c.

References AR_INTERACT, AR_NOINTERACT, AR_NONE, global_auth_retry, msg, and streq.

Referenced by add_option(), and man_dispatch_command().

◆ init_options()

void init_options ( struct options o,
const bool  init_gc 
)

Definition at line 794 of file options.c.

References connection_entry::af, options::allow_recursive_routing, options::auth_token_generate, options::authname, connection_entry::bind_ipv6_only, connection_entry::bind_local, options::block_outside_dns, options::ce, options::ciphername, CLEAR, options::connect_retry_max, connection_entry::connect_retry_seconds, connection_entry::connect_retry_seconds_max, connection_entry::connect_timeout, DEFAULT_SEQ_BACKTRACK, DEFAULT_TIME_BACKTRACK, tuntap_options::dhcp_lease_time, tuntap_options::dhcp_masq_offset, options::ecdh_curve, options::gc, gc_init(), options::gc_owned, options::handshake_window, options::ifconfig_pool_persist_refresh_freq, tuntap_options::ip_win32_type, IPW32_SET_ADAPTIVE, IPW32_SET_DHCP_MASQ, options::key_direction, KEY_DIRECTION_BIDIRECTIONAL, options::key_method, connection_entry::link_mtu, LINK_MTU_DEFAULT, connection_entry::local_port, options::management_echo_buffer_size, options::management_log_history_cache, options::management_state_buffer_size, options::max_clients, options::max_routes_per_client, options::mode, MODE_POINT_TO_POINT, connection_entry::mssfix, MSSFIX_DEFAULT, connection_entry::mtu_discover_type, options::n_bcast_buf, options::ncp_ciphers, options::ncp_enabled, options::occ, OPENVPN_PORT, options::persist_mode, options::prng_hash, options::prng_nonce_secret_len, connection_entry::proto, options::proto_force, PROTO_UDP, options::real_hash_size, connection_entry::remote_port, options::renegotiate_bytes, options::renegotiate_seconds, options::renegotiate_seconds_min, options::replay, options::replay_time, options::replay_window, RESOLV_RETRY_INFINITE, options::resolve_in_advance, options::resolve_retry_seconds, options::route_delay_window, options::route_method, ROUTE_METHOD_ADAPTIVE, options::scheduled_exit_interval, options::stale_routes_check_interval, options::status_file_update_freq, options::status_file_version, options::tcp_queue_limit, options::tls_cert_profile, options::tls_timeout, options::tmp_dir, TOP_NET30, options::topology, options::transition_window, connection_entry::tun_mtu, TUN_MTU_DEFAULT, options::tuntap_options, options::verbosity, options::virtual_hash_size, win_get_tempdir(), and X509_USERNAME_FIELD_DEFAULT.

Referenced by add_option(), openvpn_main(), options_postprocess_verify_ce(), and usage().

◆ notnull()

void notnull ( const char *  arg,
const char *  description 
)

Definition at line 4178 of file options.c.

References M_USAGE, and msg.

Referenced by do_genkey(), do_persist_tuntap(), options_postprocess_mutate(), and options_postprocess_verify_ce().

◆ options_cmp_equal()

bool options_cmp_equal ( char *  actual,
const char *  expected 
)

Definition at line 3736 of file options.c.

References options_cmp_equal_safe().

Referenced by key_method_2_read().

◆ options_cmp_equal_safe()

bool options_cmp_equal_safe ( char *  actual,
const char *  expected,
size_t  actual_n 
)

◆ options_detach()

void options_detach ( struct options o)

◆ options_postprocess()

void options_postprocess ( struct options options)

◆ options_server_import()

void options_server_import ( struct options o,
const char *  filename,
int  msglevel,
unsigned int  permission_mask,
unsigned int *  option_types_found,
struct env_set es 
)

Definition at line 4781 of file options.c.

References D_PUSH, msg, and read_config_file().

Referenced by multi_client_connect_post(), and multi_connection_established().

◆ options_string()

char* options_string ( const struct options o,
const struct frame frame,
struct tuntap tt,
bool  remote,
struct gc_arena gc 
)

◆ options_string_extract_option()

char* options_string_extract_option ( const char *  options_string,
const char *  opt_name,
struct gc_arena gc 
)

Given an OpenVPN options string, extract the value of an option.

Parameters
options_stringZero-terminated, comma-separated options string
opt_nameThe name of the option to extract
gcThe gc to allocate the return value
Returns
gc-allocated value of option with name opt_name if option was found, or NULL otherwise.

Definition at line 3916 of file options.c.

References gc_malloc(), and options_string().

Referenced by key_method_2_read().

◆ options_string_import()

void options_string_import ( struct options options,
const char *  config,
const int  msglevel,
const unsigned int  permission_mask,
unsigned int *  option_types_found,
struct env_set es 
)

Definition at line 4801 of file options.c.

References read_config_string().

Referenced by multi_client_connect_post_plugin(), and open_plugins().

◆ options_string_version()

const char* options_string_version ( const char *  s,
struct gc_arena gc 
)

Definition at line 3906 of file options.c.

References alloc_buf_gc(), BPTR, BSTR, and strncpynt().

Referenced by do_compute_occ_strings().

◆ options_warning()

void options_warning ( char *  actual,
const char *  expected 
)

Definition at line 3742 of file options.c.

References options_warning_safe().

Referenced by key_method_2_read().

◆ options_warning_safe()

void options_warning_safe ( char *  actual,
const char *  expected,
size_t  actual_n 
)

Definition at line 3900 of file options.c.

References M_WARN, and options_warning_safe_ml().

Referenced by key_method_1_read(), options_warning(), and process_received_occ_msg().

◆ parse_argv()

void parse_argv ( struct options options,
const int  argc,
char *  argv[],
const int  msglevel,
const unsigned int  permission_mask,
unsigned int *  option_types_found,
struct env_set es 
)

Definition at line 4646 of file options.c.

References add_option(), CLEAR, MAX_PARMS, msg, and usage().

Referenced by openvpn_main().

◆ parse_line()

int parse_line ( const char *  line,
char *  p[],
const int  n,
const char *  file,
const int  line_num,
int  msglevel,
struct gc_arena gc 
)

◆ parse_topology()

int parse_topology ( const char *  str,
const int  msglevel 
)

Definition at line 3988 of file options.c.

References msg, streq, TOP_NET30, TOP_P2P, TOP_SUBNET, and TOP_UNDEF.

Referenced by add_option().

◆ pre_pull_default()

void pre_pull_default ( struct options o)

◆ pre_pull_restore()

void pre_pull_restore ( struct options o,
struct gc_arena gc 
)

◆ pre_pull_save()

void pre_pull_save ( struct options o)

◆ print_topology()

const char* print_topology ( const int  topology)

Definition at line 4010 of file options.c.

References TOP_NET30, TOP_P2P, TOP_SUBNET, and TOP_UNDEF.

Referenced by print_opt_topology().

◆ rol_check_alloc()

void rol_check_alloc ( struct options options)

Definition at line 1397 of file options.c.

References options::gc, new_route_option_list(), and options::routes.

Referenced by add_option(), helper_add_route(), and pre_pull_restore().

◆ setenv_settings()

void setenv_settings ( struct env_set es,
const struct options o 
)

◆ show_library_versions()

void show_library_versions ( const unsigned int  flags)

Definition at line 4142 of file options.c.

References get_ssl_library_version(), LZO_LIB_VER_STR, and msg.

Referenced by openvpn_main(), and usage_version().

◆ show_settings()

void show_settings ( const struct options o)

◆ show_windows_version()

void show_windows_version ( const unsigned int  flags)

Definition at line 4133 of file options.c.

References gc_free(), gc_new(), msg, and win32_version_string().

Referenced by openvpn_main(), and usage_version().

◆ string_defined_equal()

bool string_defined_equal ( const char *  s1,
const char *  s2 
)

Definition at line 4187 of file options.c.

References msg.

Referenced by options_postprocess_verify_ce().

◆ uninit_options()

void uninit_options ( struct options o)

Definition at line 916 of file options.c.

References options::gc, gc_free(), and options::gc_owned.

Referenced by add_option(), openvpn_main(), and options_postprocess_verify_ce().

◆ usage_small()

void usage_small ( void  )

Definition at line 4125 of file options.c.

References M_NOPREFIX, M_WARN, msg, openvpn_exit(), and OPENVPN_EXIT_STATUS_USAGE.

Referenced by x_msg_va().

Variable Documentation

◆ title_string

const char title_string[]