[][src]Module openvpn_plugin::ffi::parse

Contains functions for parsing C formatted data from OpenVPN.

Enums

ParseError

Error type returned by the ffi parsing functions if the input data is invalid in some way.

Functions

env

Parses a null-terminated array of C strings with "=" delimiters into a key-value map.

env_utf8

Convenience method for plugins to convert the environments given to them into Rust String based environments.

string_array

Parses a null-terminated C string array into a Vec for safe usage.

string_array_utf8

Convenience method for plugins to convert the C string arrays they are given into real Rust strings.