Function for extracting data from the OpenVPN environment table. More...
#include <stdio.h>#include <stdarg.h>#include <string.h>#include <eurephia_nullsafe.h>#include <eurephia_context.h>#include <eurephia_log.h>
Include dependency graph for environment.c:Go to the source code of this file.
Functions | |
| char * | get_env (eurephiaCTX *ctx, int logmasking, size_t len, const char *envp[], const char *fmt,...) |
Function for extracting data from the OpenVPN environment table.
Definition in file environment.c.
| char* get_env | ( | eurephiaCTX * | ctx, | |
| int | logmasking, | |||
| size_t | len, | |||
| const char * | envp[], | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
get_env() retrieve values from the openvpn environment table
| ctx | eurephiaCTX context | |
| logmasking | If 1, the value will be masked in the log files (eg. to hide password) | |
| len | How many bytes to copy out of the environment variable | |
| envp | the environment table | |
| fmt | The key to look for (stdarg) |
< Messages intended when debugging. Only for log level > 10
< Messages intended when debugging. Only for log level > 10
Definition at line 50 of file environment.c.
1.7.1