OpenVPN
Data Structures | Macros | Functions
plugin.h File Reference
#include "ssl_verify_openssl.h"
#include "openvpn-plugin.h"
#include "misc.h"
Include dependency graph for plugin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  plugin_option
 
struct  plugin_option_list
 
struct  plugin
 
struct  plugin_per_client
 
struct  plugin_common
 
struct  plugin_list
 
struct  plugin_return
 

Macros

#define MAX_PLUGINS   16
 

Functions

struct plugin_option_listplugin_option_list_new (struct gc_arena *gc)
 
bool plugin_option_list_add (struct plugin_option_list *list, char **p, struct gc_arena *gc)
 
void plugin_option_list_print (const struct plugin_option_list *list, int msglevel)
 
struct plugin_listplugin_list_init (const struct plugin_option_list *list)
 
void plugin_list_open (struct plugin_list *pl, const struct plugin_option_list *list, struct plugin_return *pr, const struct env_set *es, const int init_point)
 
struct plugin_listplugin_list_inherit (const struct plugin_list *src)
 
int plugin_call_ssl (const struct plugin_list *pl, const int type, const struct argv *av, struct plugin_return *pr, struct env_set *es, int current_cert_depth, openvpn_x509_cert_t *current_cert)
 
void plugin_list_close (struct plugin_list *pl)
 
bool plugin_defined (const struct plugin_list *pl, const int type)
 
void plugin_return_get_column (const struct plugin_return *src, struct plugin_return *dest, const char *colname)
 
void plugin_return_free (struct plugin_return *pr)
 
static int plugin_n (const struct plugin_list *pl)
 
static bool plugin_return_defined (const struct plugin_return *pr)
 
static void plugin_return_init (struct plugin_return *pr)
 
static int plugin_call (const struct plugin_list *pl, const int type, const struct argv *av, struct plugin_return *pr, struct env_set *es)
 
void plugin_abort (void)
 

Macro Definition Documentation

◆ MAX_PLUGINS

#define MAX_PLUGINS   16

Definition at line 43 of file plugin.h.

Function Documentation

◆ plugin_abort()

void plugin_abort ( void  )

Definition at line 916 of file plugin.c.

References plugin_common::n, plugin_abort_item(), plugin_common::plugins, and static_plugin_common.

Referenced by openvpn_exit().

◆ plugin_call()

static int plugin_call ( const struct plugin_list pl,
const int  type,
const struct argv av,
struct plugin_return pr,
struct env_set es 
)
inlinestatic

◆ plugin_call_ssl()

int plugin_call_ssl ( const struct plugin_list pl,
const int  type,
const struct argv av,
struct plugin_return pr,
struct env_set es,
int  current_cert_depth,
openvpn_x509_cert_t current_cert 
)

◆ plugin_defined()

bool plugin_defined ( const struct plugin_list pl,
const int  type 
)

◆ plugin_list_close()

void plugin_list_close ( struct plugin_list pl)

◆ plugin_list_inherit()

struct plugin_list* plugin_list_inherit ( const struct plugin_list src)

◆ plugin_list_init()

struct plugin_list* plugin_list_init ( const struct plugin_option_list list)

Definition at line 776 of file plugin.c.

References ALLOC_OBJ_CLEAR, plugin_list::common, plugin_list::common_owned, and plugin_common_init().

Referenced by init_plugins().

◆ plugin_list_open()

void plugin_list_open ( struct plugin_list pl,
const struct plugin_option_list list,
struct plugin_return pr,
const struct env_set es,
const int  init_point 
)

◆ plugin_n()

static int plugin_n ( const struct plugin_list pl)
inlinestatic

Definition at line 152 of file plugin.h.

References plugin_list::common, and plugin_common::n.

Referenced by plugin_call_ssl().

◆ plugin_option_list_add()

bool plugin_option_list_add ( struct plugin_option_list list,
char **  p,
struct gc_arena gc 
)

◆ plugin_option_list_new()

struct plugin_option_list* plugin_option_list_new ( struct gc_arena gc)

Definition at line 160 of file plugin.c.

References ALLOC_OBJ_CLEAR_GC.

Referenced by add_option().

◆ plugin_option_list_print()

void plugin_option_list_print ( const struct plugin_option_list list,
int  msglevel 
)

◆ plugin_return_defined()

static bool plugin_return_defined ( const struct plugin_return pr)
inlinestatic

Definition at line 165 of file plugin.h.

References plugin_return::n.

Referenced by multi_client_connect_post_plugin(), and open_plugins().

◆ plugin_return_free()

void plugin_return_free ( struct plugin_return pr)

◆ plugin_return_get_column()

void plugin_return_get_column ( const struct plugin_return src,
struct plugin_return dest,
const char *  colname 
)

◆ plugin_return_init()

static void plugin_return_init ( struct plugin_return pr)
inlinestatic