|
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 } |
Functions | |
| static const char * | get_env (const char *name, const char *envp[]) |
| 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) |
| static void | session_user_set (struct session *sess, X509 *x509) |
| static int | tls_verify (struct openvpn_plugin_args_func_in const *args) |
| static void | file_store (char *file, char *content) |
| static void | server_store (struct openvpn_plugin_args_func_in const *args) |
| static void | client_store (struct openvpn_plugin_args_func_in const *args) |
| static int | tls_final (struct openvpn_plugin_args_func_in const *args, struct openvpn_plugin_args_func_return *rv) |
| 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) |
| 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 *ctx) |
| OPENVPN_EXPORT void | openvpn_plugin_close_v1 (openvpn_plugin_handle_t handle) |
| #define MAXPATH 1024 |
Definition at line 37 of file keyingmaterialexporter.c.
| #define ovpn_dbg | ( | fmt, | |
| ... | |||
| ) | plugin->log(PLOG_DEBUG, "SSO", fmt, ##__VA_ARGS__) |
Definition at line 41 of file keyingmaterialexporter.c.
| #define ovpn_err | ( | fmt, | |
| ... | |||
| ) | plugin->log(PLOG_ERR, "SSO", fmt, ##__VA_ARGS__) |
Definition at line 40 of file keyingmaterialexporter.c.
| #define ovpn_note | ( | fmt, | |
| ... | |||
| ) | plugin->log(PLOG_NOTE, "SSO", fmt, ##__VA_ARGS__) |
Definition at line 42 of file keyingmaterialexporter.c.
| enum endpoint |
| Enumerator | |
|---|---|
| CLIENT | |
| SERVER | |
Definition at line 44 of file keyingmaterialexporter.c.
|
static |
Definition at line 214 of file keyingmaterialexporter.c.
References file_store(), session::key, and ovpn_note.
Referenced by tls_final().
|
static |
Definition at line 189 of file keyingmaterialexporter.c.
Referenced by client_store(), and server_store().
|
static |
Definition at line 70 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 271 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 282 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 294 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 tls_final(), and tls_verify().
| 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 91 of file keyingmaterialexporter.c.
References CLIENT, get_env(), plugin::log, plugin::mask, ovpn_note, SERVER, and plugin::type.
|
static |
Definition at line 202 of file keyingmaterialexporter.c.
References file_store(), session::key, MAXPATH, ovpn_note, and session::user.
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(), get_env(), session::key, ovpn_note, SERVER, server_store(), plugin::type, and session::user.
Referenced by openvpn_plugin_func_v3().
|
static |
Definition at line 166 of file keyingmaterialexporter.c.
References ovpn_err, SERVER, session_user_set(), and plugin::type.
Referenced by openvpn_plugin_func_v3(), options_postprocess_verify_ce(), and show_settings().