Module openvpn_plugin::ffi::parse

source ·
Expand description

Contains functions for parsing C formatted data from OpenVPN.

Enums

  • 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.
  • Convenience method for plugins to convert the environments given to them into Rust String based environments.
  • Parses a null-terminated C string array into a Vec for safe usage.
  • Convenience method for plugins to convert the C string arrays they are given into real Rust strings.