OpenVPN
|
Go to the source code of this file.
Functions | |
BOOL | openvpn_vswprintf (LPTSTR str, size_t size, LPCTSTR format, va_list arglist) |
BOOL | openvpn_swprintf (LPTSTR str, size_t size, LPCTSTR format,...) |
static DWORD | GetRegString (HKEY key, LPCTSTR value, LPTSTR data, DWORD size, LPCTSTR default_value) |
DWORD | GetOpenvpnSettings (settings_t *s) |
LPCTSTR | GetLastErrorText () |
DWORD | MsgToEventLog (DWORD flags, LPCTSTR format,...) |
wchar_t * | utf8to16 (const char *utf8) |
const wchar_t * | get_win_sys_path (void) |
Variables | |
LPCTSTR | service_instance = TEXT("") |
static wchar_t | win_sys_path [MAX_PATH] |
const wchar_t* get_win_sys_path | ( | void | ) |
Definition at line 295 of file common.c.
References ASSERT, and win_sys_path.
LPCTSTR GetLastErrorText | ( | ) |
Definition at line 214 of file common.c.
References openvpn_swprintf().
Referenced by CmdInstallServices(), CmdRemoveServices(), CmdStartService(), and MsgToEventLog().
DWORD GetOpenvpnSettings | ( | settings_t * | s | ) |
Definition at line 86 of file common.c.
References settings_t::append, settings_t::config_dir, settings_t::exe_path, settings_t::ext_string, GetRegString(), settings_t::log_dir, M_ERR, M_SYSERR, MsgToEventLog(), openvpn_swprintf(), OVPN_ADMIN_GROUP, settings_t::ovpn_admin_group, PACKAGE_NAME, settings_t::priority, service_instance, and status.
Referenced by ServiceStartInteractive().
|
static |
Definition at line 61 of file common.c.
References M_SYSERR, MsgToEventLog(), openvpn_swprintf(), PACKAGE_NAME, service_instance, and status.
Referenced by GetOpenvpnSettings().
DWORD MsgToEventLog | ( | DWORD | flags, |
LPCTSTR | format, | ||
... | |||
) |
Definition at line 245 of file common.c.
References APPNAME, GetLastErrorText(), msg, MSG_FLAGS_ERROR, MSG_FLAGS_SYS_CODE, openvpn_swprintf(), openvpn_vswprintf(), and service_instance.
Referenced by _tmain(), BlockDNSErrHandler(), ConvertInterfaceNameToIndex(), CreateClientPipeInstance(), DeleteBlockDNS(), DuplicateAndMapRing(), ExecCommand(), GetOpenvpnSettings(), GetRegString(), GetStartupData(), GetTokenGroups(), HandleMessage(), HandleRegisterRingBuffers(), IsAuthorizedUser(), IsUserInGroup(), OvpnDuplicateHandle(), RegisterDNS(), ReportStatusToSCMgr(), ReturnError(), and ServiceStartInteractive().
BOOL openvpn_swprintf | ( | LPTSTR | str, |
size_t | size, | ||
LPCTSTR | format, | ||
... | |||
) |
Definition at line 47 of file common.c.
References openvpn_vswprintf().
Referenced by GetLastErrorText(), GetOpenvpnSettings(), GetRegString(), and MsgToEventLog().
BOOL openvpn_vswprintf | ( | LPTSTR | str, |
size_t | size, | ||
LPCTSTR | format, | ||
va_list | arglist | ||
) |
Definition at line 35 of file common.c.
Referenced by MsgToEventLog(), and openvpn_swprintf().
wchar_t* utf8to16 | ( | const char * | utf8 | ) |
Definition at line 282 of file common.c.
Referenced by HandleDNSConfigMessage(), HandleWINSConfigMessage(), InterfaceLuid(), and SetDNSDomain().
LPCTSTR service_instance = TEXT("") |
Definition at line 27 of file common.c.
Referenced by _tmain(), CreateClientPipeInstance(), GetOpenvpnSettings(), GetRegString(), MsgToEventLog(), and RunOpenvpn().
|
static |
Definition at line 28 of file common.c.
Referenced by get_win_sys_path().