OpenVPN
|
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <stdbool.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "openvpn-plugin.h"
Go to the source code of this file.
Data Structures | |
struct | plugin_context |
struct | plugin_per_client_context |
Macros | |
#define | OPENVPN_PLUGIN_VERSION_MIN 3 |
#define | OPENVPN_PLUGIN_STRUCTVER_MIN 5 |
Variables | |
static char * | MODULE = "multi-auth" |
static plugin_vlog_t | _plugin_vlog_func = NULL |
#define OPENVPN_PLUGIN_STRUCTVER_MIN 5 |
Definition at line 108 of file multi-auth.c.
#define OPENVPN_PLUGIN_VERSION_MIN 3 |
Definition at line 107 of file multi-auth.c.
|
static |
Definition at line 159 of file multi-auth.c.
Referenced by openvpn_plugin_open_v3().
|
static |
Definition at line 274 of file multi-auth.c.
References do_auth_user_pass(), get_env(), OPENVPN_PLUGIN_FUNC_DEFERRED, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, plugin_context::password, plog(), PLOG_ERR, PLOG_ERRNO, PLOG_NOTE, plugin_context::username, and write.
Referenced by openvpn_plugin_func_v3().
|
static |
Definition at line 243 of file multi-auth.c.
References np(), plugin_context::password, plog(), PLOG_ERR, PLOG_NOTE, and plugin_context::username.
Referenced by auth_user_pass_verify().
|
static |
Definition at line 123 of file multi-auth.c.
Referenced by auth_user_pass_verify().
|
static |
Definition at line 146 of file multi-auth.c.
Referenced by ce_management_query_proxy(), ce_management_query_remote(), do_auth_user_pass(), management_client_auth(), print_key_filename(), and tls_lock_username().
OPENVPN_EXPORT void* openvpn_plugin_client_constructor_v1 | ( | openvpn_plugin_handle_t | handle | ) |
Definition at line 393 of file multi-auth.c.
OPENVPN_EXPORT void openvpn_plugin_client_destructor_v1 | ( | openvpn_plugin_handle_t | handle, |
void * | per_client_context | ||
) |
Definition at line 401 of file multi-auth.c.
OPENVPN_EXPORT void openvpn_plugin_close_v1 | ( | openvpn_plugin_handle_t | handle | ) |
Definition at line 409 of file multi-auth.c.
OPENVPN_EXPORT int openvpn_plugin_func_v3 | ( | const int | v3structver, |
struct openvpn_plugin_args_func_in const * | args, | ||
struct openvpn_plugin_args_func_return * | ret | ||
) |
Definition at line 367 of file multi-auth.c.
References openvpn_plugin_args_func_in::argv, auth_user_pass_verify(), openvpn_plugin_args_func_in::envp, openvpn_plugin_args_func_in::handle, MODULE, OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_STRUCTVER_MIN, openvpn_plugin_args_func_in::per_client_context, plog(), PLOG_NOTE, and openvpn_plugin_args_func_in::type.
OPENVPN_EXPORT int openvpn_plugin_min_version_required_v1 | ( | ) |
Definition at line 173 of file multi-auth.c.
References OPENVPN_PLUGIN_VERSION_MIN.
OPENVPN_EXPORT int openvpn_plugin_open_v3 | ( | const int | v3structver, |
struct openvpn_plugin_args_open_in const * | args, | ||
struct openvpn_plugin_args_open_return * | ret | ||
) |
Definition at line 180 of file multi-auth.c.
References _plugin_vlog_func, openvpn_plugin_args_open_in::argv, atoi_null0(), openvpn_plugin_args_open_in::callbacks, openvpn_plugin_args_open_return::handle, MODULE, OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, OPENVPN_PLUGIN_MASK, OPENVPN_PLUGIN_STRUCTVER_MIN, plog(), PLOG_ERR, PLOG_NOTE, openvpn_plugin_callbacks::plugin_vlog, and openvpn_plugin_args_open_return::type_mask.
|
static |
Definition at line 76 of file multi-auth.c.
References _plugin_vlog_func, plugin_context::authid, and MODULE.
Referenced by auth_user_pass_verify(), do_auth_user_pass(), openvpn_plugin_client_constructor_v1(), openvpn_plugin_client_destructor_v1(), openvpn_plugin_close_v1(), openvpn_plugin_func_v3(), and openvpn_plugin_open_v3().
|
static |
Definition at line 74 of file multi-auth.c.
Referenced by openvpn_plugin_open_v3(), and plog().
|
static |
Definition at line 60 of file multi-auth.c.
Referenced by openvpn_plugin_func_v3(), openvpn_plugin_open_v3(), and plog().