OpenVPN
|
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include "openvpn-plugin.h"
Go to the source code of this file.
Data Structures | |
struct | plugin |
struct | session |
Macros | |
#define | MAXPATH 1024 |
#define | ovpn_err(fmt, ...) plugin->log(PLOG_ERR, "SSO", fmt, ## __VA_ARGS__) |
#define | ovpn_dbg(fmt, ...) plugin->log(PLOG_DEBUG, "SSO", fmt, ## __VA_ARGS__) |
#define | ovpn_note(fmt, ...) plugin->log(PLOG_NOTE, "SSO", fmt, ## __VA_ARGS__) |
Enumerations | |
enum | endpoint { CLIENT = 1, SERVER = 2 } |
#define MAXPATH 1024 |
Definition at line 38 of file keyingmaterialexporter.c.
#define ovpn_dbg | ( | fmt, | |
... | |||
) | plugin->log(PLOG_DEBUG, "SSO", fmt, ## __VA_ARGS__) |
Definition at line 43 of file keyingmaterialexporter.c.
Definition at line 41 of file keyingmaterialexporter.c.
Definition at line 45 of file keyingmaterialexporter.c.
enum endpoint |
Enumerator | |
---|---|
CLIENT | |
SERVER |
Definition at line 48 of file keyingmaterialexporter.c.
|
static |
Definition at line 214 of file keyingmaterialexporter.c.
References file_store(), openvpn_plugin_args_func_in::handle, ovpn_note, and openvpn_plugin_args_func_in::per_client_context.
Referenced by tls_final().
|
static |
Definition at line 189 of file keyingmaterialexporter.c.
References http-client::f.
Referenced by client_store(), and server_store().
|
static |
Definition at line 68 of file keyingmaterialexporter.c.
Referenced by openvpn_plugin_open_v3(), and tls_final().
OPENVPN_EXPORT void* openvpn_plugin_client_constructor_v1 | ( | openvpn_plugin_handle_t | handle | ) |
Definition at line 272 of file keyingmaterialexporter.c.
References ovpn_note.
OPENVPN_EXPORT void openvpn_plugin_client_destructor_v1 | ( | openvpn_plugin_handle_t | handle, |
void * | ctx | ||
) |
Definition at line 283 of file keyingmaterialexporter.c.
References session::key, and ovpn_note.
OPENVPN_EXPORT void openvpn_plugin_close_v1 | ( | openvpn_plugin_handle_t | handle | ) |
Definition at line 295 of file keyingmaterialexporter.c.
OPENVPN_EXPORT int openvpn_plugin_func_v3 | ( | const int | version, |
struct openvpn_plugin_args_func_in const * | args, | ||
struct openvpn_plugin_args_func_return * | rv | ||
) |
Definition at line 256 of file keyingmaterialexporter.c.
References OPENVPN_PLUGIN_FUNC_SUCCESS, OPENVPN_PLUGIN_TLS_FINAL, OPENVPN_PLUGIN_TLS_VERIFY, tls_final(), tls_verify(), and openvpn_plugin_args_func_in::type.
OPENVPN_EXPORT int openvpn_plugin_open_v3 | ( | const int | version, |
struct openvpn_plugin_args_open_in const * | args, | ||
struct openvpn_plugin_args_open_return * | rv | ||
) |
Definition at line 90 of file keyingmaterialexporter.c.
References openvpn_plugin_args_open_in::callbacks, CLIENT, openvpn_plugin_args_open_in::envp, get_env(), openvpn_plugin_args_open_return::handle, plugin::log, plugin::mask, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, OPENVPN_PLUGIN_MASK, OPENVPN_PLUGIN_TLS_FINAL, OPENVPN_PLUGIN_TLS_VERIFY, ovpn_note, openvpn_plugin_callbacks::plugin_log, SERVER, plugin::type, and openvpn_plugin_args_open_return::type_mask.
|
static |
Definition at line 202 of file keyingmaterialexporter.c.
References file_store(), openvpn_plugin_args_func_in::handle, MAXPATH, ovpn_note, and openvpn_plugin_args_func_in::per_client_context.
Referenced by tls_final().
|
static |
Definition at line 117 of file keyingmaterialexporter.c.
References session::user.
Referenced by tls_verify().
|
static |
Definition at line 225 of file keyingmaterialexporter.c.
References CLIENT, client_store(), openvpn_plugin_args_func_in::envp, get_env(), openvpn_plugin_args_func_in::handle, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, ovpn_note, openvpn_plugin_args_func_in::per_client_context, SERVER, server_store(), and plugin::type.
Referenced by openvpn_plugin_func_v3().
|
static |
Definition at line 166 of file keyingmaterialexporter.c.
References openvpn_plugin_args_func_in::current_cert, openvpn_plugin_args_func_in::handle, OPENVPN_PLUGIN_FUNC_ERROR, OPENVPN_PLUGIN_FUNC_SUCCESS, ovpn_err, openvpn_plugin_args_func_in::per_client_context, SERVER, session_user_set(), and plugin::type.
Referenced by openvpn_plugin_func_v3(), options_postprocess_verify_ce(), and show_settings().