Functions

environment.c File Reference

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,...)

Detailed Description

Function for extracting data from the OpenVPN environment table.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2008-08-06

Definition in file environment.c.


Function Documentation

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

Parameters:
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)
Returns:
Returns a const char * with the value, or NULL if not found

< 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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines