OpenVPN
options.h
Go to the documentation of this file.
1 /*
2  * OpenVPN -- An application to securely tunnel IP networks
3  * over a single UDP port, with support for SSL/TLS-based
4  * session authentication and key exchange,
5  * packet encryption, packet authentication, and
6  * packet compression.
7  *
8  * Copyright (C) 2002-2024 OpenVPN Inc <sales@openvpn.net>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2
12  * as published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23 
24 /*
25  * 2004-01-28: Added Socks5 proxy support
26  * (Christof Meerwald, http://cmeerw.org)
27  */
28 
29 #ifndef OPTIONS_H
30 #define OPTIONS_H
31 
32 #include "basic.h"
33 #include "common.h"
34 #include "mtu.h"
35 #include "route.h"
36 #include "tun.h"
37 #include "socket.h"
38 #include "plugin.h"
39 #include "manage.h"
40 #include "proxy.h"
41 #include "comp.h"
42 #include "pushlist.h"
43 #include "clinat.h"
44 #include "crypto_backend.h"
45 #include "dns.h"
46 
47 
48 /*
49  * Maximum number of parameters associated with an option,
50  * including the option name itself.
51  */
52 #define MAX_PARMS 16
53 
54 /*
55  * Max size of options line and parameter.
56  */
57 #define OPTION_PARM_SIZE 256
58 #define OPTION_LINE_SIZE 256
59 
60 extern const char title_string[];
61 
62 /* certain options are saved before --pull modifications are applied */
64 {
67 
70 
73 
74  const char *route_default_gateway;
76 
79 
81 
82  const char *ciphername;
83  const char *authname;
84 
88 
91 };
92 
93 #if !defined(ENABLE_CRYPTO_OPENSSL) && !defined(ENABLE_CRYPTO_MBEDTLS)
94 #error "At least one of OpenSSL or mbed TLS needs to be defined."
95 #endif
96 
98 {
99  int proto;
101  const char *local_port;
103  const char *remote_port;
104  const char *local;
105  const char *remote;
114  const char *socks_proxy_server;
115  const char *socks_proxy_port;
116  const char *socks_proxy_authfile;
117 
118  int tun_mtu; /* MTU of tun device */
119  int occ_mtu; /* if non-null, this is the MTU we announce to peers in OCC */
120  int tun_mtu_max; /* maximum MTU that can be pushed */
121 
122  bool tun_mtu_defined; /* true if user overriding parm with command line option */
125  int link_mtu; /* MTU of device over which tunnel packets pass via TCP/UDP */
126  bool link_mtu_defined; /* true if user overriding parm with command line option */
127  int tls_mtu; /* Maximum MTU for the control channel messages */
128 
129  /* Advanced MTU negotiation and datagram fragmentation options */
130  int mtu_discover_type; /* used if OS supports setting Path MTU discovery options on socket */
131 
132  int fragment; /* internal fragmentation size */
133  bool fragment_encap; /* true if --fragment had the "mtu" parameter to
134  * include overhead from IP and TCP/UDP encapsulation */
135  int mssfix; /* Upper bound on TCP MSS */
136  bool mssfix_default; /* true if --mssfix should use the default parameters */
137  bool mssfix_encap; /* true if --mssfix had the "mtu" parameter to include
138  * overhead from IP and TCP/UDP encapsulation */
139  bool mssfix_fixed; /* use the mssfix value without any encapsulation adjustments */
140 
141  int explicit_exit_notification; /* Explicitly tell peer when we are exiting via OCC_EXIT or [RESTART] message */
142 
143 #define CE_DISABLED (1<<0)
144 #define CE_MAN_QUERY_PROXY (1<<1)
145 #define CE_MAN_QUERY_REMOTE_UNDEF 0
146 #define CE_MAN_QUERY_REMOTE_QUERY 1
147 #define CE_MAN_QUERY_REMOTE_ACCEPT 2
148 #define CE_MAN_QUERY_REMOTE_MOD 3
149 #define CE_MAN_QUERY_REMOTE_SKIP 4
150 #define CE_MAN_QUERY_REMOTE_MASK (0x07)
151 #define CE_MAN_QUERY_REMOTE_SHIFT (2)
152  unsigned int flags;
153 
154  /* Shared secret used for TLS control channel authentication */
155  const char *tls_auth_file;
158 
159  /* Shared secret used for TLS control channel authenticated encryption */
160  const char *tls_crypt_file;
162 
163  /* Client-specific secret or server key used for TLS control channel
164  * authenticated encryption v2 */
165  const char *tls_crypt_v2_file;
167 
168  /* Allow only client that support resending the wrapped client key */
170 };
171 
173 {
174  const char *remote;
175  const char *remote_port;
176  int proto;
178 };
179 
180 #define CONNECTION_LIST_SIZE 64
181 
183 {
184  int capacity;
185  int len;
186  int current;
188 };
189 
191 {
192  int capacity;
193  int len;
194  struct remote_entry **array;
195 };
196 
198 {
199  /* Names of the providers */
200  const char *names[MAX_PARMS];
201  /* Pointers to the loaded providers to unload them */
203 };
204 
206 {
210 };
211 
213 {
214 #define RH_HOST_LEN 80
216 #define RH_PORT_LEN 20
218 };
219 
225 };
226 
228 {
229  /* We support SHA256 and SHA1 fingerpint. In the case of using the
230  * deprecated SHA1, only the first 20 bytes of each list item are used */
233 };
234 
235 /* Command line options */
236 struct options
237 {
238  struct gc_arena gc;
239  bool gc_owned;
240 
241  /* first config file */
242  const char *config;
243 
244  /* major mode */
245 #define MODE_POINT_TO_POINT 0
246 #define MODE_SERVER 1
247  int mode;
248 
249  /* enable forward compatibility for post-2.1 features */
253  unsigned int backwards_compatible;
254 
255  /* list of options that should be ignored even if unknown */
256  const char **ignore_unknown_option;
257 
258  /* persist parms */
261 
262  const char *key_pass_file;
268  bool genkey;
270  const char *genkey_filename;
271  const char *genkey_extra_data;
272 
273  /* Networking parms */
277 
279  /* Do not advance the connection or remote addr list */
281  /* Advance directly to the next remote, skipping remaining addresses of the
282  * current remote */
284  /* Counts the number of unsuccessful connection attempts */
285  unsigned int unsuccessful_attempts;
286  /* count of connection entries to advance by when no_advance is not set */
288  /* the server can suggest a backoff time to the client, it
289  * will still be capped by the max timeout between connections
290  * (300s by default) */
292 
293 #if ENABLE_MANAGEMENT
295 #endif
296 
298 
300 
302  const char *ipchange;
303  const char *dev;
304  const char *dev_type;
305  const char *dev_node;
306  const char *lladdr;
307  int topology; /* one of the TOP_x values from proto.h */
308  const char *ifconfig_local;
310  const char *ifconfig_ipv6_local;
312  const char *ifconfig_ipv6_remote;
315  int shaper;
316 
318 
319  bool mtu_test;
320 
321 #ifdef ENABLE_MEMSTATS
322  char *memstats_fn;
323 #endif
324 
325  bool mlock;
326 
327  int keepalive_ping; /* a proxy for ping/ping-restart */
329 
330  int inactivity_timeout; /* --inactive */
332 
333  int session_timeout; /* Force-kill session after n seconds */
334 
335  int ping_send_timeout; /* Send a TCP/UDP ping to remote every n seconds */
336  int ping_rec_timeout; /* Expect a TCP/UDP ping from remote at least once every n seconds */
337  bool ping_timer_remote; /* Run ping timer only if we have a remote address */
338 
339 #define PING_UNDEF 0
340 #define PING_EXIT 1
341 #define PING_RESTART 2
342  int ping_rec_timeout_action; /* What action to take on ping_rec_timeout (exit or restart)? */
343 
344  bool persist_tun; /* Don't close/reopen TUN/TAP dev on SIGUSR1 or PING_RESTART */
345  bool persist_local_ip; /* Don't re-resolve local address on SIGUSR1 or PING_RESTART */
346  bool persist_remote_ip; /* Don't re-resolve remote address on SIGUSR1 or PING_RESTART */
347 
348 #if PASSTOS_CAPABILITY
349  bool passtos;
350 #endif
351 
352  int resolve_retry_seconds; /* If hostname resolve fails, retry for n seconds */
354  const char *ip_remote_hint;
355 
357 
358  /* Misc parms */
359  const char *username;
360  const char *groupname;
361  const char *chroot_dir;
362  const char *cd_dir;
363 #ifdef ENABLE_SELINUX
364  char *selinux_context;
365 #endif
366  const char *writepid;
367  const char *up_script;
368  const char *down_script;
370  bool down_pre;
371  bool up_delay;
373  bool daemon;
374 
376 
377  bool log;
380  int nice;
382  int mute;
383 
384 #ifdef ENABLE_DEBUG
385  int gremlin;
386 #endif
387 
388  const char *status_file;
391 
392  /* optimize TUN/TAP/UDP writes */
393  bool fast_io;
394 
396 
397  /* buffer sizes */
398  int rcvbuf;
399  int sndbuf;
400 
401  /* mark value */
402  int mark;
403  char *bind_dev;
404 
405  /* socket flags */
406  unsigned int sockflags;
407 
408  /* route management */
409  const char *route_script;
410  const char *route_predown_script;
423  bool allow_pull_fqdn; /* as a client, allow server to push a FQDN for certain parameters */
425 
426  /* Enable options consistency check between peers */
427  bool occ;
428 
429 #ifdef ENABLE_MANAGEMENT
430  const char *management_addr;
431  const char *management_port;
432  const char *management_user_pass;
436 
439 
441 #endif
442  /* Mask of MF_ values of manage.h */
443  unsigned int management_flags;
444 
445 #ifdef ENABLE_PLUGIN
447 #endif
448 
449  /* the tmp dir is for now only used in the P2P server context */
450  const char *tmp_dir;
452  in_addr_t server_network;
453  in_addr_t server_netmask;
454  bool server_ipv6_defined; /* IPv6 */
455  struct in6_addr server_network_ipv6; /* IPv6 */
456  unsigned int server_netbits_ipv6; /* IPv6 */
457 
458 #define SF_NOPOOL (1<<0)
459 #define SF_TCP_NODELAY_HELPER (1<<1)
460 #define SF_NO_PUSH_ROUTE_GATEWAY (1<<2)
461  unsigned int server_flags;
462 
464 
466  in_addr_t server_bridge_ip;
470 
474  in_addr_t ifconfig_pool_end;
478 
479  bool ifconfig_ipv6_pool_defined; /* IPv6 */
480  struct in6_addr ifconfig_ipv6_pool_base; /* IPv6 */
482 
487  const char *learn_address_script;
489  const char *client_config_dir;
491  bool disable;
494  struct iroute *iroutes;
495  struct iroute_ipv6 *iroutes_ipv6; /* IPv6 */
503  bool push_ifconfig_ipv4_blocked; /* IPv4 */
504  bool push_ifconfig_ipv6_defined; /* IPv6 */
505  struct in6_addr push_ifconfig_ipv6_local; /* IPv6 */
507  struct in6_addr push_ifconfig_ipv6_remote; /* IPv6 */
508  bool push_ifconfig_ipv6_blocked; /* IPv6 */
511 
512  int cf_max;
513  int cf_per;
514 
517 
522 
531 
532 #if PORT_SHARE
533  char *port_share_host;
534  char *port_share_port;
535  const char *port_share_journal_dir;
536 #endif
537 
538  bool client;
539  bool pull; /* client pull of config options from server */
542  const char *auth_user_pass_file;
545 
547 
548 #ifdef ENABLE_MANAGEMENT
550 #endif
551  /* Cipher parms */
552  const char *shared_secret_file;
556  const char *ciphername;
559  const char *ncp_ciphers;
560  const char *authname;
561  const char *engine;
566  const char *packet_id_file;
568 #ifdef ENABLE_PREDICTION_RESISTANCE
569  bool use_prediction_resistance;
570 #endif
571 
572  /* TLS (control channel) parms */
575  const char *ca_file;
577  const char *ca_path;
578  const char *dh_file;
580  const char *cert_file;
582  const char *extra_certs_file;
584  const char *priv_key_file;
586  const char *pkcs12_file;
588  const char *cipher_list;
589  const char *cipher_list_tls13;
590  const char *tls_groups;
591  const char *tls_cert_profile;
592  const char *ecdh_curve;
593  const char *tls_verify;
596  const char *verify_x509_name;
597  const char *crl_file;
599 
600  int ns_cert_type; /* set to 0, NS_CERT_CHECK_SERVER, or NS_CERT_CHECK_CLIENT */
602  const char *remote_cert_eku;
607  unsigned int ssl_flags; /* set to SSLF_x flags from ssl.h */
608 
609 #ifdef ENABLE_PKCS11
610  const char *pkcs11_providers[MAX_PARMS];
611  unsigned pkcs11_private_mode[MAX_PARMS];
612  bool pkcs11_protected_authentication[MAX_PARMS];
613  bool pkcs11_cert_private[MAX_PARMS];
614  int pkcs11_pin_cache_period;
615  const char *pkcs11_id;
617 #endif
618 
619 #ifdef ENABLE_CRYPTOAPI
620  const char *cryptoapi_cert;
621 #endif
622  /* Per-packet timeout on control channel */
624 
625  /* Data channel key renegotiation parameters */
630 
631  /* Data channel key handshake must finalize
632  * within n seconds of handshake initiation. */
634 
635 #ifdef ENABLE_X509ALTUSERNAME
636  /* Field list used to be the username in X509 cert. */
637  char *x509_username_field[MAX_PARMS];
638 #endif
639 
640  /* Old key allowed to live n seconds after new key goes active */
642 
643  /* Shared secret used for TLS control channel authentication */
644  const char *tls_auth_file;
646 
647  /* Shared secret used for TLS control channel authenticated encryption */
648  const char *tls_crypt_file;
650 
651  /* Client-specific secret or server key used for TLS control channel
652  * authenticated encryption v2 */
653  const char *tls_crypt_v2_file;
655 
657 
659 
660  /* Allow only one session */
662 
664 
665  bool tls_exit;
666 
667  const struct x509_track *x509_track;
668 
669  /* special state parms */
671 
672 #ifdef _WIN32
673  HANDLE msg_channel;
674  const char *exit_event_name;
680 #endif
681 
683  uint32_t peer_id;
684 
685 #ifdef HAVE_EXPORT_KEYING_MATERIAL
686  /* Keying Material Exporters [RFC 5705] */
687  const char *keying_material_exporter_label;
688  int keying_material_exporter_length;
689 #endif
690  /* force using TLS key material export for data channel key generation */
692 
695  uint16_t vlan_pvid;
696 
698 
699  /* Useful when packets sent by openvpn itself are not subject
700  * to the routing tables that would move packets into the tunnel. */
702 
703  /* data channel crypto flags set by push/pull. Reuses the CO_* crypto_flags */
705 };
706 
707 #define streq(x, y) (!strcmp((x), (y)))
708 
709 /*
710  * Option classes.
711  */
712 #define OPT_P_GENERAL (1<<0)
713 #define OPT_P_UP (1<<1)
714 #define OPT_P_ROUTE (1<<2)
715 #define OPT_P_DHCPDNS (1<<3) /* includes ip windows options like */
716 #define OPT_P_SCRIPT (1<<4)
717 #define OPT_P_SETENV (1<<5)
718 #define OPT_P_SHAPER (1<<6)
719 #define OPT_P_TIMER (1<<7)
720 #define OPT_P_PERSIST (1<<8)
721 #define OPT_P_PERSIST_IP (1<<9)
722 #define OPT_P_COMP (1<<10) /* TODO */
723 #define OPT_P_MESSAGES (1<<11)
724 #define OPT_P_NCP (1<<12)
725 #define OPT_P_TLS_PARMS (1<<13) /* TODO */
726 #define OPT_P_MTU (1<<14) /* TODO */
727 #define OPT_P_NICE (1<<15)
728 #define OPT_P_PUSH (1<<16)
729 #define OPT_P_INSTANCE (1<<17)
730 #define OPT_P_CONFIG (1<<18)
731 #define OPT_P_EXPLICIT_NOTIFY (1<<19)
732 #define OPT_P_ECHO (1<<20)
733 #define OPT_P_INHERIT (1<<21)
734 #define OPT_P_ROUTE_EXTRAS (1<<22)
735 #define OPT_P_PULL_MODE (1<<23)
736 #define OPT_P_PLUGIN (1<<24)
737 #define OPT_P_SOCKBUF (1<<25)
738 #define OPT_P_SOCKFLAGS (1<<26)
739 #define OPT_P_CONNECTION (1<<27)
740 #define OPT_P_PEER_ID (1<<28)
741 #define OPT_P_INLINE (1<<29)
742 #define OPT_P_PUSH_MTU (1<<30)
743 
744 #define OPT_P_DEFAULT (~(OPT_P_INSTANCE|OPT_P_PULL_MODE))
745 
746 #define PULL_DEFINED(opt) ((opt)->pull)
747 #define PUSH_DEFINED(opt) ((opt)->push_list)
748 
749 #ifndef PULL_DEFINED
750 #define PULL_DEFINED(opt) (false)
751 #endif
752 
753 #ifndef PUSH_DEFINED
754 #define PUSH_DEFINED(opt) (false)
755 #endif
756 
757 #ifdef _WIN32
758 #define ROUTE_OPTION_FLAGS(o) ((o)->route_method & ROUTE_METHOD_MASK)
759 #else
760 #define ROUTE_OPTION_FLAGS(o) (0)
761 #endif
762 
763 #define SHAPER_DEFINED(opt) ((opt)->shaper)
764 
765 #ifdef ENABLE_PLUGIN
766 #define PLUGIN_OPTION_LIST(opt) ((opt)->plugin_list)
767 #else
768 #define PLUGIN_OPTION_LIST(opt) (NULL)
769 #endif
770 
771 #ifdef ENABLE_MANAGEMENT
772 #define MAN_CLIENT_AUTH_ENABLED(opt) ((opt)->management_flags & MF_CLIENT_AUTH)
773 #else
774 #define MAN_CLIENT_AUTH_ENABLED(opt) (false)
775 #endif
776 
777 void parse_argv(struct options *options,
778  const int argc,
779  char *argv[],
780  const int msglevel,
781  const unsigned int permission_mask,
782  unsigned int *option_types_found,
783  struct env_set *es);
784 
785 void notnull(const char *arg, const char *description);
786 
787 void usage_small(void);
788 
789 void show_library_versions(const unsigned int flags);
790 
791 #ifdef _WIN32
792 void show_windows_version(const unsigned int flags);
793 
794 #endif
795 
796 void show_dco_version(const unsigned int flags);
797 
798 void init_options(struct options *o, const bool init_gc);
799 
800 void uninit_options(struct options *o);
801 
802 void setenv_settings(struct env_set *es, const struct options *o);
803 
804 void show_settings(const struct options *o);
805 
806 bool string_defined_equal(const char *s1, const char *s2);
807 
808 const char *options_string_version(const char *s, struct gc_arena *gc);
809 
810 char *options_string(const struct options *o,
811  const struct frame *frame,
812  struct tuntap *tt,
813  openvpn_net_ctx_t *ctx,
814  bool remote,
815  struct gc_arena *gc);
816 
817 bool options_cmp_equal_safe(char *actual, const char *expected, size_t actual_n);
818 
819 void options_warning_safe(char *actual, const char *expected, size_t actual_n);
820 
821 bool options_cmp_equal(char *actual, const char *expected);
822 
823 void options_warning(char *actual, const char *expected);
824 
836  const char *opt_name, struct gc_arena *gc);
837 
838 
839 void options_postprocess(struct options *options, struct env_set *es);
840 
841 bool options_postprocess_pull(struct options *o, struct env_set *es);
842 
843 void pre_connect_restore(struct options *o, struct gc_arena *gc);
844 
845 bool apply_push_options(struct options *options,
846  struct buffer *buf,
847  unsigned int permission_mask,
848  unsigned int *option_types_found,
849  struct env_set *es);
850 
851 void options_detach(struct options *o);
852 
853 void options_server_import(struct options *o,
854  const char *filename,
855  int msglevel,
856  unsigned int permission_mask,
857  unsigned int *option_types_found,
858  struct env_set *es);
859 
860 void pre_pull_default(struct options *o);
861 
862 void rol_check_alloc(struct options *options);
863 
864 int parse_line(const char *line,
865  char *p[],
866  const int n,
867  const char *file,
868  const int line_num,
869  int msglevel,
870  struct gc_arena *gc);
871 
872 /*
873  * parse/print topology coding
874  */
875 
876 int parse_topology(const char *str, const int msglevel);
877 
878 const char *print_topology(const int topology);
879 
880 /*
881  * Manage auth-retry variable
882  */
883 
884 #define AR_NONE 0
885 #define AR_INTERACT 1
886 #define AR_NOINTERACT 2
887 
888 int auth_retry_get(void);
889 
890 bool auth_retry_set(const int msglevel, const char *option);
891 
892 const char *auth_retry_print(void);
893 
895  const char *config,
896  const int msglevel,
897  const unsigned int permission_mask,
898  unsigned int *option_types_found,
899  struct env_set *es);
900 
901 bool key_is_external(const struct options *options);
902 
906 static inline bool
907 dco_enabled(const struct options *o)
908 {
909 #ifdef ENABLE_DCO
910  return !o->tuntap_options.disable_dco;
911 #else
912  return false;
913 #endif /* ENABLE_DCO */
914 }
915 
916 #endif /* ifndef OPTIONS_H */
connection_entry::tls_crypt_file
const char * tls_crypt_file
Definition: options.h:160
options::keepalive_timeout
int keepalive_timeout
Definition: options.h:328
options::server_network_ipv6
struct in6_addr server_network_ipv6
Definition: options.h:455
options::replay_time
int replay_time
Definition: options.h:565
GENKEY_AUTH_TOKEN
@ GENKEY_AUTH_TOKEN
Definition: options.h:224
options::genkey_type
enum genkey_type genkey_type
Definition: options.h:269
options::vlan_tagging
bool vlan_tagging
Definition: options.h:693
options::show_engines
bool show_engines
Definition: options.h:265
options::ssl_flags
unsigned int ssl_flags
Definition: options.h:607
options::verbosity
int verbosity
Definition: options.h:381
iroute
Definition: route.h:234
connection_entry::mtu_discover_type
int mtu_discover_type
Definition: options.h:130
options::verify_hash
struct verify_hash_list * verify_hash
Definition: options.h:603
connection_entry::mssfix_encap
bool mssfix_encap
Definition: options.h:137
connection_entry::mssfix
int mssfix
Definition: options.h:135
compress_options
Definition: comp.h:64
options::show_digests
bool show_digests
Definition: options.h:264
pull_filter_list
Definition: options.c:940
connection_entry::link_mtu
int link_mtu
Definition: options.h:125
options::use_peer_id
bool use_peer_id
Definition: options.h:682
options::sc_info
struct static_challenge_info sc_info
Definition: options.h:549
options::client_connect_script
const char * client_connect_script
Definition: options.h:485
options::tcp_queue_limit
int tcp_queue_limit
Definition: options.h:493
options::enable_ncp_fallback
bool enable_ncp_fallback
If defined fall back to ciphername if NCP fails.
Definition: options.h:557
GENKEY_SECRET
@ GENKEY_SECRET
Definition: options.h:221
VLAN_ONLY_UNTAGGED_OR_PRIORITY
@ VLAN_ONLY_UNTAGGED_OR_PRIORITY
Definition: options.h:208
options::nice
int nice
Definition: options.h:380
options::cf_initial_per
int cf_initial_per
Definition: options.h:516
options_warning_safe
void options_warning_safe(char *actual, const char *expected, size_t actual_n)
Definition: options.c:4635
connection_entry::connect_retry_seconds
int connect_retry_seconds
Definition: options.h:110
connection_entry::explicit_exit_notification
int explicit_exit_notification
Definition: options.h:141
options::route_gateway_via_dhcp
bool route_gateway_via_dhcp
Definition: options.h:422
options::up_script
const char * up_script
Definition: options.h:367
options::keepalive_ping
int keepalive_ping
Definition: options.h:327
connection_entry::socks_proxy_server
const char * socks_proxy_server
Definition: options.h:114
options_pre_connect::route_ipv6_default_gateway
const char * route_ipv6_default_gateway
Definition: options.h:75
provider_list
Definition: options.h:197
options::server_flags
unsigned int server_flags
Definition: options.h:461
options::ce_advance_count
int ce_advance_count
Definition: options.h:287
options::auth_token_secret_file
const char * auth_token_secret_file
Definition: options.h:529
options::ipchange
const char * ipchange
Definition: options.h:302
options::show_ciphers
bool show_ciphers
Definition: options.h:263
RH_PORT_LEN
#define RH_PORT_LEN
Definition: options.h:216
argv
Definition: argv.h:35
options::enable_c2c
bool enable_c2c
Definition: options.h:509
options::duplicate_cn
bool duplicate_cn
Definition: options.h:510
connection_entry::tls_crypt_file_inline
bool tls_crypt_file_inline
Definition: options.h:161
show_dco_version
void show_dco_version(const unsigned int flags)
Definition: options.c:4866
options::server_network
in_addr_t server_network
Definition: options.h:452
options::inactivity_minimum_bytes
int64_t inactivity_minimum_bytes
Definition: options.h:331
manage.h
options::ca_path
const char * ca_path
Definition: options.h:577
connection_entry::remote_port
const char * remote_port
Definition: options.h:103
client_nat_option_list
Definition: clinat.h:43
options::forward_compatible
bool forward_compatible
Definition: options.h:250
options::cert_file
const char * cert_file
Definition: options.h:580
es
struct env_set * es
Definition: test_pkcs11.c:133
hash
Definition: list.h:56
options::route_nopull
bool route_nopull
Definition: options.h:421
options::server_bridge_ip
in_addr_t server_bridge_ip
Definition: options.h:466
connection_entry::tun_mtu_defined
bool tun_mtu_defined
Definition: options.h:122
options::key_direction
int key_direction
Definition: options.h:555
options::topology
int topology
Definition: options.h:307
verify_hash_list::next
struct verify_hash_list * next
Definition: options.h:232
options::authname
const char * authname
Definition: options.h:560
options::dev_type
const char * dev_type
Definition: options.h:304
options::iroutes
struct iroute * iroutes
Definition: options.h:494
title_string
const char title_string[]
Definition: options.c:67
string_defined_equal
bool string_defined_equal(const char *s1, const char *s2)
Definition: options.c:4922
options::status_file_update_freq
int status_file_update_freq
Definition: options.h:390
options::tls_client
bool tls_client
Definition: options.h:574
options::shared_secret_file
const char * shared_secret_file
Definition: options.h:552
options::extra_certs_file_inline
bool extra_certs_file_inline
Definition: options.h:583
connection_entry::tls_crypt_v2_force_cookie
bool tls_crypt_v2_force_cookie
Definition: options.h:169
connection_entry::connect_timeout
int connect_timeout
Definition: options.h:112
options::server_defined
bool server_defined
Definition: options.h:451
windows_driver_type
windows_driver_type
Definition: tun.h:49
plugin_option_list
Definition: plugin.h:50
GENKEY_TLS_CRYPTV2_CLIENT
@ GENKEY_TLS_CRYPTV2_CLIENT
Definition: options.h:222
options::cipher_list
const char * cipher_list
Definition: options.h:588
vlan_acceptable_frames
vlan_acceptable_frames
Definition: options.h:205
options::mode
int mode
Definition: options.h:247
options::session_timeout
int session_timeout
Definition: options.h:333
options::mute
int mute
Definition: options.h:382
VLAN_ONLY_TAGGED
@ VLAN_ONLY_TAGGED
Definition: options.h:207
remote_host_store::port
char port[RH_PORT_LEN]
Definition: options.h:217
MAX_PARMS
#define MAX_PARMS
Definition: options.h:52
connection_entry::link_mtu_defined
bool link_mtu_defined
Definition: options.h:126
options::push_ifconfig_ipv6_local
struct in6_addr push_ifconfig_ipv6_local
Definition: options.h:505
provider_list::providers
provider_t * providers[MAX_PARMS]
Definition: options.h:202
options::ce
struct connection_entry ce
Definition: options.h:275
options::msg_channel
HANDLE msg_channel
Definition: options.h:673
auth_retry_print
const char * auth_retry_print(void)
Definition: options.c:4795
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: options.c:5533
usage_small
void usage_small(void)
Definition: options.c:4849
options::n_bcast_buf
int n_bcast_buf
Definition: options.h:492
options::ifconfig_ipv6_pool_defined
bool ifconfig_ipv6_pool_defined
Definition: options.h:479
verify_hash_list
Definition: options.h:227
options::verify_hash_algo
hash_algo_type verify_hash_algo
Definition: options.h:604
openvpn_net_ctx_t
void * openvpn_net_ctx_t
Definition: networking.h:28
clinat.h
options::genkey_extra_data
const char * genkey_extra_data
Definition: options.h:271
remote_entry::remote
const char * remote
Definition: options.h:174
options_pre_connect::foreign_option_index
int foreign_option_index
Definition: options.h:89
connection_list::capacity
int capacity
Definition: options.h:184
plugin.h
options_pre_connect::ping_rec_timeout_action
int ping_rec_timeout_action
Definition: options.h:87
options::shaper
int shaper
Definition: options.h:315
options::tls_export_peer_cert_dir
const char * tls_export_peer_cert_dir
Definition: options.h:594
options_string_version
const char * options_string_version(const char *s, struct gc_arena *gc)
Definition: options.c:4641
options::cd_dir
const char * cd_dir
Definition: options.h:362
RH_HOST_LEN
#define RH_HOST_LEN
Definition: options.h:214
options::remote_random
bool remote_random
Definition: options.h:301
options::ifconfig_noexec
bool ifconfig_noexec
Definition: options.h:313
frame
Packet geometry parameters.
Definition: mtu.h:98
options::push_continuation
int push_continuation
Definition: options.h:540
connection_entry::fragment_encap
bool fragment_encap
Definition: options.h:133
options::tls_server
bool tls_server
Definition: options.h:573
options::allow_deprecated_insecure_static_crypto
bool allow_deprecated_insecure_static_crypto
Definition: options.h:554
options::auth_token_renewal
int auth_token_renewal
Definition: options.h:528
options_pre_connect::routes_ipv6
struct route_ipv6_option_list * routes_ipv6
Definition: options.h:72
connection_entry::bind_local
bool bind_local
Definition: options.h:109
provider_list::names
const char * names[MAX_PARMS]
Definition: options.h:200
connection_entry
Definition: options.h:97
remote_entry::af
sa_family_t af
Definition: options.h:177
options::allow_recursive_routing
bool allow_recursive_routing
Definition: options.h:701
options::routes_ipv6
struct route_ipv6_option_list * routes_ipv6
Definition: options.h:419
options::tls_exit
bool tls_exit
Definition: options.h:665
options::route_noexec
bool route_noexec
Definition: options.h:414
options_postprocess
void options_postprocess(struct options *options, struct env_set *es)
Definition: options.c:4179
options::tls_cert_profile
const char * tls_cert_profile
Definition: options.h:591
sa_family_t
unsigned short sa_family_t
Definition: syshead.h:385
options::renegotiate_seconds
int renegotiate_seconds
Definition: options.h:628
parse_topology
int parse_topology(const char *str, const int msglevel)
Definition: options.c:4716
options::persist_local_ip
bool persist_local_ip
Definition: options.h:345
options::verify_hash_depth
int verify_hash_depth
Definition: options.h:605
options::ignore_unknown_option
const char ** ignore_unknown_option
Definition: options.h:256
options::ecdh_curve
const char * ecdh_curve
Definition: options.h:592
mtu.h
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)
Definition: options.c:4966
options::show_curves
bool show_curves
Definition: options.h:267
connection_list::len
int len
Definition: options.h:185
options::http_proxy_override
struct http_proxy_options * http_proxy_override
Definition: options.h:294
options::cipher_list_tls13
const char * cipher_list_tls13
Definition: options.h:589
options::up_delay
bool up_delay
Definition: options.h:371
options::writepid
const char * writepid
Definition: options.h:366
options_pre_connect::tuntap_options_defined
bool tuntap_options_defined
Definition: options.h:65
options_pre_connect::ciphername
const char * ciphername
Definition: options.h:82
options::max_clients
int max_clients
Definition: options.h:518
options::disable
bool disable
Definition: options.h:491
connection_entry::socks_proxy_port
const char * socks_proxy_port
Definition: options.h:115
options::dh_file
const char * dh_file
Definition: options.h:578
options::resolve_in_advance
bool resolve_in_advance
Definition: options.h:353
options::ifconfig_nowarn
bool ifconfig_nowarn
Definition: options.h:314
options::dev
const char * dev
Definition: options.h:303
connection_list::current
int current
Definition: options.h:186
options::management_port
const char * management_port
Definition: options.h:431
options::rh_store
struct remote_host_store * rh_store
Definition: options.h:297
options::groupname
const char * groupname
Definition: options.h:360
connection_entry::connect_retry_seconds_max
int connect_retry_seconds_max
Definition: options.h:111
options::ip_remote_hint
const char * ip_remote_hint
Definition: options.h:354
options::single_session
bool single_session
Definition: options.h:661
options::auth_user_pass_file
const char * auth_user_pass_file
Definition: options.h:542
options::client_nat
struct client_nat_option_list * client_nat
Definition: options.h:424
options_pre_connect::routes
struct route_option_list * routes
Definition: options.h:69
options::server_netmask
in_addr_t server_netmask
Definition: options.h:453
connection_list
Definition: options.h:182
options::cf_initial_max
int cf_initial_max
Definition: options.h:515
options::ping_send_timeout
int ping_send_timeout
Definition: options.h:335
remote_entry::remote_port
const char * remote_port
Definition: options.h:175
options::windows_driver
enum windows_driver_type windows_driver
Definition: options.h:679
options::x509_track
const struct x509_track * x509_track
Definition: options.h:667
options::client
bool client
Definition: options.h:538
tun.h
options::shared_secret_file_inline
bool shared_secret_file_inline
Definition: options.h:553
options::pre_connect
struct options_pre_connect * pre_connect
Definition: options.h:544
route_option_list
Definition: route.h:93
connection_entry::bind_defined
bool bind_defined
Definition: options.h:107
options::management_client_group
const char * management_client_group
Definition: options.h:438
options::test_crypto
bool test_crypto
Definition: options.h:567
options::verify_hash_no_ca
bool verify_hash_no_ca
Definition: options.h:606
options::block_outside_dns
bool block_outside_dns
Definition: options.h:678
options_pre_connect::route_default_gateway
const char * route_default_gateway
Definition: options.h:74
options::ifconfig_ipv6_netbits
int ifconfig_ipv6_netbits
Definition: options.h:311
options::ncp_ciphers
const char * ncp_ciphers
Definition: options.h:559
options::push_ifconfig_ipv6_defined
bool push_ifconfig_ipv6_defined
Definition: options.h:504
options::tls_crypt_file
const char * tls_crypt_file
Definition: options.h:648
connection_entry::mssfix_fixed
bool mssfix_fixed
Definition: options.h:139
setenv_settings
void setenv_settings(struct env_set *es, const struct options *o)
Definition: options.c:1007
options::comp
struct compress_options comp
Definition: options.h:395
options::persist_config
bool persist_config
Definition: options.h:259
options_pre_connect::routes_ipv6_defined
bool routes_ipv6_defined
Definition: options.h:71
options::imported_protocol_flags
unsigned int imported_protocol_flags
Definition: options.h:704
options::auth_token_lifetime
int auth_token_lifetime
Definition: options.h:527
options::push_peer_info
bool push_peer_info
Definition: options.h:663
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: options.c:5390
options::allow_pull_fqdn
bool allow_pull_fqdn
Definition: options.h:423
options::tls_crypt_v2_file
const char * tls_crypt_v2_file
Definition: options.h:653
options::push_ifconfig_ipv6_blocked
bool push_ifconfig_ipv6_blocked
Definition: options.h:508
route.h
options::management_state_buffer_size
int management_state_buffer_size
Definition: options.h:435
remote_host_store::host
char host[RH_HOST_LEN]
Definition: options.h:215
options::push_ifconfig_defined
bool push_ifconfig_defined
Definition: options.h:496
options::persist_tun
bool persist_tun
Definition: options.h:344
connection_entry::tls_auth_file
const char * tls_auth_file
Definition: options.h:155
options::backwards_compatible
unsigned int backwards_compatible
What version we should try to be compatible with as major * 10000 + minor * 100 + patch,...
Definition: options.h:253
options::tls_crypt_v2_file_inline
bool tls_crypt_v2_file_inline
Definition: options.h:654
options::proto_force
int proto_force
Definition: options.h:317
options::tls_auth_file
const char * tls_auth_file
Definition: options.h:644
connection_entry::tls_crypt_v2_file_inline
bool tls_crypt_v2_file_inline
Definition: options.h:166
options::route_predown_script
const char * route_predown_script
Definition: options.h:410
options::push_ifconfig_constraint_defined
bool push_ifconfig_constraint_defined
Definition: options.h:500
connection_entry::tls_auth_file_inline
bool tls_auth_file_inline
Definition: options.h:156
options::auth_token_secret_file_inline
bool auth_token_secret_file_inline
Definition: options.h:530
options::server_netbits_ipv6
unsigned int server_netbits_ipv6
Definition: options.h:456
connection_entry::tls_crypt_v2_file
const char * tls_crypt_v2_file
Definition: options.h:165
options::pkcs12_file_inline
bool pkcs12_file_inline
Definition: options.h:587
options::verify_x509_type
int verify_x509_type
Definition: options.h:595
options
Definition: options.h:236
options::auth_user_pass_file_inline
bool auth_user_pass_file_inline
Definition: options.h:543
connection_entry::key_direction
int key_direction
Definition: options.h:157
options::providers
struct provider_list providers
Definition: options.h:562
options::log
bool log
Definition: options.h:377
options::gc
struct gc_arena gc
Definition: options.h:238
options::mlock
bool mlock
Definition: options.h:325
options_pre_connect::ping_send_timeout
int ping_send_timeout
Definition: options.h:85
options::tls_timeout
int tls_timeout
Definition: options.h:623
options::management_addr
const char * management_addr
Definition: options.h:430
options::tls_verify
const char * tls_verify
Definition: options.h:593
hash_algo_type
hash_algo_type
Types referencing specific message digest hashing algorithms.
Definition: crypto_backend.h:51
options::down_script
const char * down_script
Definition: options.h:368
connection_entry::tun_mtu_extra
int tun_mtu_extra
Definition: options.h:123
options::no_advance
bool no_advance
Definition: options.h:280
tuntap_options
Definition: tun.h:69
options::virtual_hash_size
int virtual_hash_size
Definition: options.h:484
options::ifconfig_pool_netmask
in_addr_t ifconfig_pool_netmask
Definition: options.h:475
options::server_ipv6_defined
bool server_ipv6_defined
Definition: options.h:454
connection_entry::local_port_defined
bool local_port_defined
Definition: options.h:102
options::show_tls_ciphers
bool show_tls_ciphers
Definition: options.h:266
options::push_ifconfig_ipv6_netbits
int push_ifconfig_ipv6_netbits
Definition: options.h:506
options::tls_crypt_file_inline
bool tls_crypt_file_inline
Definition: options.h:649
options::renegotiate_seconds_min
int renegotiate_seconds_min
Definition: options.h:629
options::persist_remote_ip
bool persist_remote_ip
Definition: options.h:346
options::ccd_exclusive
bool ccd_exclusive
Definition: options.h:490
options::stale_routes_check_interval
int stale_routes_check_interval
Definition: options.h:520
options::scheduled_exit_interval
int scheduled_exit_interval
Definition: options.h:546
options_pre_connect::client_nat
struct client_nat_option_list * client_nat
Definition: options.h:78
options::ping_rec_timeout
int ping_rec_timeout
Definition: options.h:336
options::pkcs12_file
const char * pkcs12_file
Definition: options.h:586
options::client_crresponse_script
const char * client_crresponse_script
Definition: options.h:488
buffer
Wrapper structure for dynamically allocated memory.
Definition: buffer.h:60
GENKEY_TLS_CRYPTV2_SERVER
@ GENKEY_TLS_CRYPTV2_SERVER
Definition: options.h:223
options::genkey
bool genkey
Definition: options.h:268
options::verify_x509_name
const char * verify_x509_name
Definition: options.h:596
options::replay_window
int replay_window
Definition: options.h:564
options_warning
void options_warning(char *actual, const char *expected)
Definition: options.c:4476
options::route_ipv6_default_gateway
const char * route_ipv6_default_gateway
Definition: options.h:412
options::foreign_option_index
int foreign_option_index
Definition: options.h:670
static_challenge_info
Definition: misc.h:92
options::exit_event_name
const char * exit_event_name
Definition: options.h:674
options::push_ifconfig_ipv6_remote
struct in6_addr push_ifconfig_ipv6_remote
Definition: options.h:507
options::management_certificate
const char * management_certificate
Definition: options.h:440
options_pre_connect::comp
struct compress_options comp
Definition: options.h:90
provider_t
void provider_t
Definition: crypto_mbedtls.h:49
options::route_delay_defined
bool route_delay_defined
Definition: options.h:417
options::handshake_window
int handshake_window
Definition: options.h:633
options::remote_cert_ku
unsigned remote_cert_ku[MAX_PARMS]
Definition: options.h:601
connection_entry::occ_mtu
int occ_mtu
Definition: options.h:119
options::ping_timer_remote
bool ping_timer_remote
Definition: options.h:337
options::crl_file_inline
bool crl_file_inline
Definition: options.h:598
options::status_file_version
int status_file_version
Definition: options.h:389
options::route_default_metric
int route_default_metric
Definition: options.h:413
key_is_external
bool key_is_external(const struct options *options)
Definition: options.c:5715
options::sndbuf
int sndbuf
Definition: options.h:399
options::block_ipv6
bool block_ipv6
Definition: options.h:420
proxy.h
options::fast_io
bool fast_io
Definition: options.h:393
options::force_key_material_export
bool force_key_material_export
Definition: options.h:691
options::server_bridge_proxy_dhcp
bool server_bridge_proxy_dhcp
Definition: options.h:463
options::dh_file_inline
bool dh_file_inline
Definition: options.h:579
options::push_ifconfig_ipv4_blocked
bool push_ifconfig_ipv4_blocked
Definition: options.h:503
options::management_flags
unsigned int management_flags
Definition: options.h:443
options::route_method
int route_method
Definition: options.h:677
options::cert_file_inline
bool cert_file_inline
Definition: options.h:581
options::server_bridge_pool_start
in_addr_t server_bridge_pool_start
Definition: options.h:468
options::management_echo_buffer_size
int management_echo_buffer_size
Definition: options.h:434
options::unsuccessful_attempts
unsigned int unsuccessful_attempts
Definition: options.h:285
connection_list::array
struct connection_entry ** array
Definition: options.h:187
show_settings
void show_settings(const struct options *o)
Definition: options.c:1798
options::client_config_dir
const char * client_config_dir
Definition: options.h:489
gc_arena
Garbage collection arena used to keep track of dynamically allocated memory.
Definition: buffer.h:116
options::status_file
const char * status_file
Definition: options.h:388
options::genkey_filename
const char * genkey_filename
Definition: options.h:270
remote_host_store
Definition: options.h:212
options::auth_token_call_auth
bool auth_token_call_auth
Definition: options.h:526
auth_retry_get
int auth_retry_get(void)
Definition: options.c:4766
remote_list::array
struct remote_entry ** array
Definition: options.h:194
options::vlan_pvid
uint16_t vlan_pvid
Definition: options.h:695
options::resolve_retry_seconds
int resolve_retry_seconds
Definition: options.h:352
rol_check_alloc
void rol_check_alloc(struct options *options)
Definition: options.c:1683
connection_entry::http_proxy_options
struct http_proxy_options * http_proxy_options
Definition: options.h:113
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.
Definition: options.c:4649
options::ca_file
const char * ca_file
Definition: options.h:575
env_set
Definition: env_set.h:42
options::server_bridge_netmask
in_addr_t server_bridge_netmask
Definition: options.h:467
options::config
const char * config
Definition: options.h:242
options::plugin_list
struct plugin_option_list * plugin_list
Definition: options.h:446
options::priv_key_file_inline
bool priv_key_file_inline
Definition: options.h:585
comp.h
dco_enabled
static bool dco_enabled(const struct options *o)
Returns whether the current configuration has dco enabled.
Definition: options.h:907
connection_entry::flags
unsigned int flags
Definition: options.h:152
common.h
init_options
void init_options(struct options *o, const bool init_gc)
Definition: options.c:789
options::connect_retry_max
int connect_retry_max
Definition: options.h:274
options::tls_auth_file_inline
bool tls_auth_file_inline
Definition: options.h:645
options::management_log_history_cache
int management_log_history_cache
Definition: options.h:433
tuntap_options::disable_dco
bool disable_dco
Definition: tun.h:73
options::daemon
bool daemon
Definition: options.h:373
connection_entry::socks_proxy_authfile
const char * socks_proxy_authfile
Definition: options.h:116
options_pre_connect::routes_defined
bool routes_defined
Definition: options.h:68
VLAN_ALL
@ VLAN_ALL
Definition: options.h:209
options::ifconfig_pool_end
in_addr_t ifconfig_pool_end
Definition: options.h:474
options::tls_groups
const char * tls_groups
Definition: options.h:590
basic.h
options::gc_owned
bool gc_owned
Definition: options.h:239
options::rcvbuf
int rcvbuf
Definition: options.h:398
options::remap_sigusr1
int remap_sigusr1
Definition: options.h:375
options::exit_event_initial_state
bool exit_event_initial_state
Definition: options.h:675
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: options.c:5553
pre_connect_restore
void pre_connect_restore(struct options *o, struct gc_arena *gc)
Definition: options.c:3328
options_pre_connect::client_nat_defined
bool client_nat_defined
Definition: options.h:77
options::peer_id
uint32_t peer_id
Definition: options.h:683
options_pre_connect
Definition: options.h:63
SHA256_DIGEST_LENGTH
#define SHA256_DIGEST_LENGTH
Definition: crypto_mbedtls.h:77
options::ifconfig_pool_defined
bool ifconfig_pool_defined
Definition: options.h:472
options::advance_next_remote
bool advance_next_remote
Definition: options.h:283
options_postprocess_pull
bool options_postprocess_pull(struct options *o, struct env_set *es)
Definition: options.c:4193
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)
Definition: options.c:5503
connection_entry::remote_float
bool remote_float
Definition: options.h:106
connection_entry::remote
const char * remote
Definition: options.h:105
options::machine_readable_output
bool machine_readable_output
Definition: options.h:379
options::tls_crypt_v2_verify_script
const char * tls_crypt_v2_verify_script
Definition: options.h:658
options::key_pass_file
const char * key_pass_file
Definition: options.h:262
iroute_ipv6
Definition: route.h:240
connection_entry::tun_mtu_extra_defined
bool tun_mtu_extra_defined
Definition: options.h:124
options::ns_cert_type
int ns_cert_type
Definition: options.h:600
print_topology
const char * print_topology(const int topology)
Definition: options.c:4738
options::packet_id_file
const char * packet_id_file
Definition: options.h:566
remote_entry::proto
int proto
Definition: options.h:176
options::push_ifconfig_remote_netmask
in_addr_t push_ifconfig_remote_netmask
Definition: options.h:498
dns_options
Definition: dns.h:70
options::renegotiate_packets
int renegotiate_packets
Definition: options.h:627
options::connection_list
struct connection_list * connection_list
Definition: options.h:276
options::cf_per
int cf_per
Definition: options.h:513
options::ifconfig_remote_netmask
const char * ifconfig_remote_netmask
Definition: options.h:309
options::routes
struct route_option_list * routes
Definition: options.h:418
options::chroot_dir
const char * chroot_dir
Definition: options.h:361
options::down_pre
bool down_pre
Definition: options.h:370
tuntap
Definition: tun.h:171
socket.h
options::ifconfig_ipv6_pool_netbits
int ifconfig_ipv6_pool_netbits
Definition: options.h:481
options::mark
int mark
Definition: options.h:402
options::max_routes_per_client
int max_routes_per_client
Definition: options.h:519
options::cryptoapi_cert
const char * cryptoapi_cert
Definition: options.h:620
options::server_bridge_pool_end
in_addr_t server_bridge_pool_end
Definition: options.h:469
options::sockflags
unsigned int sockflags
Definition: options.h:406
options::username
const char * username
Definition: options.h:359
connection_entry::mssfix_default
bool mssfix_default
Definition: options.h:136
connection_entry::local
const char * local
Definition: options.h:104
options::ifconfig_pool_start
in_addr_t ifconfig_pool_start
Definition: options.h:473
pre_pull_default
void pre_pull_default(struct options *o)
http_proxy_options
Definition: proxy.h:44
notnull
void notnull(const char *arg, const char *description)
Definition: options.c:4913
options::extra_certs_file
const char * extra_certs_file
Definition: options.h:582
connection_entry::bind_ipv6_only
bool bind_ipv6_only
Definition: options.h:108
connection_entry::fragment
int fragment
Definition: options.h:132
options::up_restart
bool up_restart
Definition: options.h:372
route_ipv6_option_list
Definition: route.h:106
options::ifconfig_pool_persist_filename
const char * ifconfig_pool_persist_filename
Definition: options.h:476
connection_entry::tls_mtu
int tls_mtu
Definition: options.h:127
options::auth_user_pass_verify_script_via_file
bool auth_user_pass_verify_script_via_file
Definition: options.h:524
options_detach
void options_detach(struct options *o)
Definition: options.c:1674
options::transition_window
int transition_window
Definition: options.h:641
connection_entry::proto
int proto
Definition: options.h:99
options::mute_replay_warnings
bool mute_replay_warnings
Definition: options.h:563
options::ifconfig_ipv6_pool_base
struct in6_addr ifconfig_ipv6_pool_base
Definition: options.h:480
options::auth_token_generate
bool auth_token_generate
Definition: options.h:525
options::ifconfig_ipv6_local
const char * ifconfig_ipv6_local
Definition: options.h:310
genkey_type
genkey_type
Definition: options.h:220
options::engine
const char * engine
Definition: options.h:561
options::real_hash_size
int real_hash_size
Definition: options.h:483
options::priv_key_file
const char * priv_key_file
Definition: options.h:584
options::client_disconnect_script
const char * client_disconnect_script
Definition: options.h:486
remote_entry
Definition: options.h:172
options::push_option_types_found
unsigned int push_option_types_found
Definition: options.h:541
options::stale_routes_ageing_time
int stale_routes_ageing_time
Definition: options.h:521
options::show_net_up
bool show_net_up
Definition: options.h:676
auth_retry_set
bool auth_retry_set(const int msglevel, const char *option)
Definition: options.c:4772
options::tmp_dir
const char * tmp_dir
Definition: options.h:450
options::cf_max
int cf_max
Definition: options.h:512
options::crl_file
const char * crl_file
Definition: options.h:597
options_string
char * options_string(const struct options *o, const struct frame *frame, struct tuntap *tt, openvpn_net_ctx_t *ctx, bool remote, struct gc_arena *gc)
Definition: options.c:4251
options::iroutes_ipv6
struct iroute_ipv6 * iroutes_ipv6
Definition: options.h:495
options_pre_connect::authname
const char * authname
Definition: options.h:83
remote_list::len
int len
Definition: options.h:193
options::route_delay_window
int route_delay_window
Definition: options.h:416
options_cmp_equal_safe
bool options_cmp_equal_safe(char *actual, const char *expected, size_t actual_n)
Definition: options.c:4612
options::occ
bool occ
Definition: options.h:427
options::persist_mode
int persist_mode
Definition: options.h:260
options::remote_list
struct remote_list * remote_list
Definition: options.h:278
dns.h
options::pull_filter_list
struct pull_filter_list * pull_filter_list
Definition: options.h:697
options::push_ifconfig_local_alias
in_addr_t push_ifconfig_local_alias
Definition: options.h:499
show_library_versions
void show_library_versions(const unsigned int flags)
Definition: options.c:4876
connection_entry::af
sa_family_t af
Definition: options.h:100
options::push_ifconfig_constraint_network
in_addr_t push_ifconfig_constraint_network
Definition: options.h:501
options::route_script
const char * route_script
Definition: options.h:409
pushlist.h
options::tuntap_options
struct tuntap_options tuntap_options
Definition: options.h:356
options::vlan_accept
enum vlan_acceptable_frames vlan_accept
Definition: options.h:694
options::route_delay
int route_delay
Definition: options.h:415
options::ifconfig_local
const char * ifconfig_local
Definition: options.h:308
connection_entry::tun_mtu
int tun_mtu
Definition: options.h:118
options::push_ifconfig_local
in_addr_t push_ifconfig_local
Definition: options.h:497
options::user_script_used
bool user_script_used
Definition: options.h:369
options::learn_address_script
const char * learn_address_script
Definition: options.h:487
connection_entry::tun_mtu_max
int tun_mtu_max
Definition: options.h:120
options::ping_rec_timeout_action
int ping_rec_timeout_action
Definition: options.h:342
options::bind_dev
char * bind_dev
Definition: options.h:403
options::mtu_test
bool mtu_test
Definition: options.h:319
options::management_client_user
const char * management_client_user
Definition: options.h:437
options::ciphername
const char * ciphername
Definition: options.h:556
options::inactivity_timeout
int inactivity_timeout
Definition: options.h:330
options::suppress_timestamps
bool suppress_timestamps
Definition: options.h:378
uninit_options
void uninit_options(struct options *o)
Definition: options.c:911
connection_entry::local_port
const char * local_port
Definition: options.h:101
options::dev_node
const char * dev_node
Definition: options.h:305
options::server_backoff_time
int server_backoff_time
Definition: options.h:291
pkcs11_id_management
static bool pkcs11_id_management
Definition: test_pkcs11.c:128
options::auth_user_pass_verify_script
const char * auth_user_pass_verify_script
Definition: options.h:523
options::tls_crypt_v2_metadata
const char * tls_crypt_v2_metadata
Definition: options.h:656
options::ifconfig_pool_persist_refresh_freq
int ifconfig_pool_persist_refresh_freq
Definition: options.h:477
options_pre_connect::ping_rec_timeout
int ping_rec_timeout
Definition: options.h:86
remote_list
Definition: options.h:190
options::ifconfig_ipv6_remote
const char * ifconfig_ipv6_remote
Definition: options.h:312
options::renegotiate_bytes
int renegotiate_bytes
Definition: options.h:626
crypto_backend.h
options::lladdr
const char * lladdr
Definition: options.h:306
options::server_bridge_defined
bool server_bridge_defined
Definition: options.h:465
x509_track
Definition: ssl_verify.h:214
remote_list::capacity
int capacity
Definition: options.h:192
options::ca_file_inline
bool ca_file_inline
Definition: options.h:576
options::management_user_pass
const char * management_user_pass
Definition: options.h:432
options::push_ifconfig_constraint_netmask
in_addr_t push_ifconfig_constraint_netmask
Definition: options.h:502
options::remote_cert_eku
const char * remote_cert_eku
Definition: options.h:602
options::pull
bool pull
Definition: options.h:539
push_list
Definition: pushlist.h:35
options_cmp_equal
bool options_cmp_equal(char *actual, const char *expected)
Definition: options.c:4470
show_windows_version
void show_windows_version(const unsigned int flags)
Definition: options.c:4857
options::route_default_gateway
const char * route_default_gateway
Definition: options.h:411