OpenVPN
Macros | Functions
validate.h File Reference
#include "service.h"
Include dependency graph for validate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSTEM_ADMIN_GROUP   TEXT("Administrators")
 
#define OVPN_ADMIN_GROUP   TEXT("OpenVPN Administrators")
 

Functions

BOOL IsAuthorizedUser (PSID sid, const HANDLE token, const WCHAR *ovpn_admin_group)
 
BOOL CheckOption (const WCHAR *workdir, int narg, WCHAR *argv[], const settings_t *s)
 
static BOOL IsOption (const WCHAR *o)
 

Macro Definition Documentation

◆ OVPN_ADMIN_GROUP

#define OVPN_ADMIN_GROUP   TEXT("OpenVPN Administrators")

Definition at line 32 of file validate.h.

Referenced by GetOpenvpnSettings().

◆ SYSTEM_ADMIN_GROUP

#define SYSTEM_ADMIN_GROUP   TEXT("Administrators")

Definition at line 31 of file validate.h.

Referenced by IsAuthorizedUser().

Function Documentation

◆ CheckOption()

BOOL CheckOption ( const WCHAR *  workdir,
int  narg,
WCHAR *  argv[],
const settings_t s 
)

Definition at line 329 of file validate.c.

References CheckConfigPath(), OptionLookup(), and white_list.

Referenced by ValidateOptions().

◆ IsAuthorizedUser()

BOOL IsAuthorizedUser ( PSID  sid,
const HANDLE  token,
const WCHAR *  ovpn_admin_group 
)

◆ IsOption()

static BOOL IsOption ( const WCHAR *  o)
inlinestatic

Definition at line 42 of file validate.h.

Referenced by ValidateOptions().