Module openvpn_plugin::ffi [] [src]

FFI types and functions used by the plugin to convert between the types OpenVPN pass and expect back and the Rust types the plugin will be exposed to.

Not intended for manual use. Is publicly exported since code generated by the openvpn_plugin macro must access these types and functions.

Modules

parse

Contains functions for parsing C formatted data from OpenVPN.

structs

Rust representations of the C structs sent in and expected back by OpenVPN. Constants for OpenVPN. Taken from include/openvpn-plugin.h in the OpenVPN repository: https://github.com/OpenVPN/openvpn/blob/master/include/openvpn-plugin.h.in

Constants

OPENVPN_PLUGIN_FUNC_DEFERRED
OPENVPN_PLUGIN_FUNC_ERROR
OPENVPN_PLUGIN_FUNC_SUCCESS