OpenVPN
Data Fields
openvpn_plugin_args_func_in Struct Reference

Arguments used to transport variables to and from the plug-in. More...

#include <openvpn-plugin.h>

Data Fields

const int type
 
const char **const argv
 
const char **const envp
 
openvpn_plugin_handle_t handle
 
void * per_client_context
 
int current_cert_depth
 
openvpn_x509_cert_tcurrent_cert
 

Detailed Description

Arguments used to transport variables to and from the plug-in.

The struct openvpn_plugin_args_func is only used by the openvpn_plugin_func_v3() function.

STRUCT MEMBERS:

type : one of the PLUGIN_x types.

argv : a NULL-terminated array of "command line" options which would normally be passed to the script. argv[0] is the dynamic library pathname.

envp : a NULL-terminated array of OpenVPN-set environmental variables in "name=value" format. Note that for security reasons, these variables are not actually written to the "official" environmental variable store of the process.

handle : Pointer to a global plug-in context, created by the plug-in's openvpn_plugin_open_v3().

per_client_context : the per-client context pointer which was returned by openvpn_plugin_client_constructor_v1, if defined.

current_cert_depth : Certificate depth of the certificate being passed over

*current_cert : X509 Certificate object received from the client

Definition at line 429 of file openvpn-plugin.h.

Field Documentation

◆ argv

const char** const openvpn_plugin_args_func_in::argv

Definition at line 432 of file openvpn-plugin.h.

Referenced by openvpn_plugin_func_v3().

◆ current_cert

openvpn_x509_cert_t* openvpn_plugin_args_func_in::current_cert

Definition at line 437 of file openvpn-plugin.h.

Referenced by openvpn_plugin_func_v3(), plugin_call_item(), and tls_verify().

◆ current_cert_depth

int openvpn_plugin_args_func_in::current_cert_depth

Definition at line 436 of file openvpn-plugin.h.

Referenced by openvpn_plugin_func_v3().

◆ envp

const char** const openvpn_plugin_args_func_in::envp

Definition at line 433 of file openvpn-plugin.h.

Referenced by openvpn_plugin_func_v3(), plugin_call_item(), and tls_final().

◆ handle

openvpn_plugin_handle_t openvpn_plugin_args_func_in::handle

◆ per_client_context

void* openvpn_plugin_args_func_in::per_client_context

◆ type

const int openvpn_plugin_args_func_in::type

Definition at line 431 of file openvpn-plugin.h.

Referenced by openvpn_plugin_func_v3(), and plugin_call_item().


The documentation for this struct was generated from the following file: