OpenVPN
|
Go to the source code of this file.
Data Structures | |
struct | plugin_context |
struct | plugin_per_client_context |
Macros | |
#define | bool int |
#define | true 1 |
#define | false 0 |
Functions | |
static const char * | get_env (const char *name, const char *envp[]) |
static const char * | np (const char *str) |
static int | atoi_null0 (const char *str) |
OPENVPN_EXPORT openvpn_plugin_handle_t | openvpn_plugin_open_v1 (unsigned int *type_mask, const char *argv[], const char *envp[]) |
static int | auth_user_pass_verify (struct plugin_context *context, struct plugin_per_client_context *pcc, const char *argv[], const char *envp[]) |
static int | tls_final (struct plugin_context *context, struct plugin_per_client_context *pcc, const char *argv[], const char *envp[]) |
OPENVPN_EXPORT int | openvpn_plugin_func_v2 (openvpn_plugin_handle_t handle, const int type, const char *argv[], const char *envp[], void *per_client_context, struct openvpn_plugin_string_list **return_list) |
OPENVPN_EXPORT void * | openvpn_plugin_client_constructor_v1 (openvpn_plugin_handle_t handle) |
OPENVPN_EXPORT void | openvpn_plugin_client_destructor_v1 (openvpn_plugin_handle_t handle, void *per_client_context) |
OPENVPN_EXPORT void | openvpn_plugin_close_v1 (openvpn_plugin_handle_t handle) |
#define false 0 |
Definition at line 63 of file simple.c.
Referenced by add_option(), and EvaluateTAPInterfaces().
#define true 1 |
Definition at line 62 of file simple.c.
Referenced by EvaluateTAPInterfaces().
|
static |
Definition at line 121 of file simple.c.
References OPENVPN_EXPORT.
Referenced by openvpn_plugin_open_v1().
|
static |
Definition at line 171 of file simple.c.
References get_env(), plugin_per_client_context::n_calls, np(), OPENVPN_PLUGIN_FUNC_DEFERRED, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, plugin_context::password, snprintf, plugin_context::test_deferred_auth, and plugin_context::username.
Referenced by openvpn_plugin_func_v2().
|
static |
Definition at line 85 of file simple.c.
Referenced by auth_user_pass_verify(), openvpn_plugin_func_v1(), openvpn_plugin_open_v1(), openvpn_plugin_open_v3(), send_string(), and tls_final().
|
static |
Definition at line 108 of file simple.c.
Referenced by auth_user_pass_verify(), ce_management_query_proxy(), ce_management_query_remote(), management_delete_event(), show_routes(), tls_ctx_load_ca(), and tls_lock_username().
OPENVPN_EXPORT void* openvpn_plugin_client_constructor_v1 | ( | openvpn_plugin_handle_t | handle | ) |
Definition at line 320 of file simple.c.
References OPENVPN_EXPORT.
OPENVPN_EXPORT void openvpn_plugin_client_destructor_v1 | ( | openvpn_plugin_handle_t | handle, |
void * | per_client_context | ||
) |
Definition at line 327 of file simple.c.
References free, and OPENVPN_EXPORT.
OPENVPN_EXPORT void openvpn_plugin_close_v1 | ( | openvpn_plugin_handle_t | handle | ) |
OPENVPN_EXPORT int openvpn_plugin_func_v2 | ( | openvpn_plugin_handle_t | handle, |
const int | type, | ||
const char * | argv[], | ||
const char * | envp[], | ||
void * | per_client_context, | ||
struct openvpn_plugin_string_list ** | return_list | ||
) |
Definition at line 251 of file simple.c.
References auth_user_pass_verify(), OPENVPN_EXPORT, OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY, OPENVPN_PLUGIN_CLIENT_CONNECT_V2, OPENVPN_PLUGIN_CLIENT_DISCONNECT, OPENVPN_PLUGIN_DOWN, OPENVPN_PLUGIN_ENABLE_PF, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, OPENVPN_PLUGIN_IPCHANGE, OPENVPN_PLUGIN_LEARN_ADDRESS, OPENVPN_PLUGIN_ROUTE_UP, OPENVPN_PLUGIN_TLS_FINAL, OPENVPN_PLUGIN_TLS_VERIFY, OPENVPN_PLUGIN_UP, plugin_context::test_packet_filter, and tls_final().
OPENVPN_EXPORT openvpn_plugin_handle_t openvpn_plugin_open_v1 | ( | unsigned int * | type_mask, |
const char * | argv[], | ||
const char * | envp[] | ||
) |
Definition at line 134 of file simple.c.
References atoi_null0(), get_env(), OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY, OPENVPN_PLUGIN_CLIENT_CONNECT_V2, OPENVPN_PLUGIN_CLIENT_DISCONNECT, OPENVPN_PLUGIN_DOWN, OPENVPN_PLUGIN_ENABLE_PF, OPENVPN_PLUGIN_IPCHANGE, OPENVPN_PLUGIN_LEARN_ADDRESS, OPENVPN_PLUGIN_MASK, OPENVPN_PLUGIN_ROUTE_UP, OPENVPN_PLUGIN_TLS_FINAL, OPENVPN_PLUGIN_TLS_VERIFY, OPENVPN_PLUGIN_UP, plugin_context::test_deferred_auth, and plugin_context::test_packet_filter.
|
static |
Definition at line 216 of file simple.c.
References plugin_per_client_context::generated_pf_file, get_env(), OPENVPN_EXPORT, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, snprintf, and plugin_context::test_packet_filter.
Referenced by openvpn_plugin_func_v2().