]> andersk Git - nss_nonlocal.git/blame - nonlocal.h
Move the repetitive NSS walking logic into an include file
[nss_nonlocal.git] / nonlocal.h
CommitLineData
e40bea7e
AK
1/*
2 * nonlocal.h
3 * common definitions for nss_nonlocal proxy
4 *
5 * Copyright © 2007–2010 Anders Kaseorg <andersk@mit.edu> and Tim
6 * Abbott <tabbott@mit.edu>
7 *
8 * This file is part of nss_nonlocal.
9 *
10 * nss_nonlocal is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License
12 * as published by the Free Software Foundation; either version 2.1 of
13 * the License, or (at your option) any later version.
14 *
15 * nss_nonlocal is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with nss_nonlocal; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * 02110-1301 USA
24 */
25
f6903667
AK
26#ifndef NONLOCAL_H
27#define NONLOCAL_H
c02caabc
AK
28
29#include "config.h"
cbb0e3ea
AK
30#include "nsswitch-internal.h"
31
32struct walk_nss {
33 enum nss_status *status;
34 int (*lookup)(service_user **ni, const char *fct_name,
35 void **fctp) internal_function;
36 const char *fct_name;
37 int *errnop;
38 char **buf;
39 size_t *buflen;
40};
c02caabc 41
f6903667
AK
42enum nss_status check_nonlocal_uid(const char *user, uid_t uid, int *errnop);
43enum nss_status check_nonlocal_gid(const char *user, gid_t gid, int *errnop);
48479fc7 44enum nss_status check_nonlocal_user(const char *user, int *errnop);
c02caabc 45
a360549e 46#define NONLOCAL_IGNORE_ENV "NSS_NONLOCAL_IGNORE"
c02caabc 47
f6903667 48#endif /* NON_LOCAL_H */
This page took 0.052991 seconds and 5 git commands to generate.