Go to the documentation of this file.
33 #define BASE_N_EVENTS 5
49 #define IVM_LEVEL_1 (1<<0)
50 #define IVM_LEVEL_2 (1<<1)
87 unsigned int option_types_found);
103 #define CC_GC_FREE (1<<0)
104 #define CC_USR1_TO_HUP (1<<1)
105 #define CC_HARD_USR1_TO_HUP (1<<2)
106 #define CC_NO_CLOSE (1<<3)
114 #define ISC_ERRORS (1<<0)
115 #define ISC_SERVER (1<<1)
116 #define ISC_ROUTE_ERRORS (1<<2)
119 #ifdef ENABLE_MANAGEMENT
144 void write_pid_file(
const char *filename,
const char *chroot_dir);
struct context_buffers * init_context_buffers(const struct frame *frame)
void inherit_context_child(struct context *dest, const struct context *src)
void init_plugins(struct context *c)
void init_verb_mute(struct context *c, unsigned int flags)
void context_clear_all_except_first_time(struct context *c)
Contains all state information for one tunnel.
struct plugin_list * plugins
List of plug-ins.
bool open_management(struct context *c)
void close_context(struct context *c, int sig, unsigned int flags)
bool print_openssl_info(const struct options *options)
bool do_deferred_options(struct context *c, const unsigned int found)
bool possibly_become_daemon(const struct options *options)
Packet geometry parameters.
void uninit_management_callback(void)
void free_context_buffers(struct context_buffers *b)
void persist_client_stats(struct context *c)
struct gc_arena gc
Garbage collection arena for allocations done in the scope of this context structure.
bool do_persist_tuntap(struct options *options, openvpn_net_ctx_t *ctx)
void close_management(void)
void management_show_net_callback(void *arg, const int msglevel)
void reset_coarse_timers(struct context *c)
bool do_genkey(const struct options *options)
void inherit_context_top(struct context *dest, const struct context *src)
void init_management_callback_p2p(struct context *c)
void pre_setup(const struct options *options)
void init_query_passwords(const struct context *c)
Query for private key and auth-user-pass username/passwords.
void init_instance_handle_signals(struct context *c, const struct env_set *env, const unsigned int flags)
void remove_pid_file(void)
void init_management(void)
void initialization_sequence_completed(struct context *c, const unsigned int flags)
void write_pid_file(const char *filename, const char *chroot_dir)
const char * format_common_name(struct context *c, struct gc_arena *gc)
void close_instance(struct context *c)
bool do_test_crypto(const struct options *o)
void context_clear_2(struct context *c)
void init_options_dev(struct options *options)
bool do_route(const struct options *options, struct route_list *route_list, struct route_ipv6_list *route_ipv6_list, const struct tuntap *tt, const struct plugin_list *plugins, struct env_set *es, openvpn_net_ctx_t *ctx)
void context_gc_free(struct context *c)
Garbage collection arena used to keep track of dynamically allocated memory.
struct signal_info * sig
Internal error signaling object.
bool do_up(struct context *c, bool pulled_options, unsigned int option_types_found)
void context_clear_1(struct context *c)
void init_instance(struct context *c, const struct env_set *env, const unsigned int flags)
void context_clear(struct context *c)
void context_init_1(struct context *c)
unsigned int pull_permission_mask(const struct context *c)
void open_plugins(struct context *c, const bool import_options, int init_point)