]>
git.ipfire.org Git - thirdparty/openvpn.git/blob - src/openvpnserv/validate.h
363e1fb0a35649c96d54f826ff83fbdf4abc53ab
3 * OpenVPN -- An application to securely tunnel IP networks
4 * over a single TCP/UDP port, with support for SSL/TLS-based
5 * session authentication and key exchange,
6 * packet encryption, packet authentication, and
9 * Copyright (C) 2016-2023 Selva Nair <selva.nair@gmail.com>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2
13 * as published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
30 /* Authorized groups who can use any options and config locations */
31 #define SYSTEM_ADMIN_GROUP TEXT("Administrators")
32 #define OVPN_ADMIN_GROUP TEXT("OpenVPN Administrators")
33 /* The last one may be reset in registry: HKLM\Software\OpenVPN\ovpn_admin_group */
36 IsAuthorizedUser(PSID sid
, const HANDLE token
, const WCHAR
*ovpn_admin_group
);
39 CheckOption(const WCHAR
*workdir
, int narg
, WCHAR
*argv
[], const settings_t
*s
);
42 IsOption(const WCHAR
*o
)
44 return (wcsncmp(o
, L
"--", 2) == 0);
47 #endif /* ifndef VALIDATE_H */