Update copyright year.
[pwmd.git] / src / acl.h
blobc2d8b67fd63d756a047a54a6b7a133764df0f772
1 /*
2 Copyright (C) 2006-2019 Ben Kibbey <bjk@luxsci.net>
4 This file is part of pwmd.
6 Pwmd is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
11 Pwmd is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pwmd. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef ACL_H
20 #define ACL_H
22 gpg_error_t do_validate_peer (assuan_context_t ctx, const char *section,
23 assuan_peercred_t *peer);
24 gpg_error_t peer_is_invoker(struct client_s *client);
25 gpg_error_t acl_check_common (struct client_s *client, const char *user,
26 uid_t uid, gid_t gid, int *allowed);
27 gpg_error_t validate_peer (struct client_s *);
29 #endif