s3:smb2_sesssetup: make use of smbd_smb2_generate_outbody()
[Samba/wip.git] / nsswitch / winbind_nss_netbsd.h
blob5aeb2b9d7da705dffa4e4c2b94322dba24c01315
1 /*
2 Unix SMB/CIFS implementation.
4 NetBSD loadable authentication module, providing identification
5 routines against Samba winbind/Windows NT Domain
7 Copyright (C) Luke Mewburn 2004-2005
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 3 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
19 You should have received a copy of the GNU Lesser General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _WINBIND_NSS_NETBSD_H
24 #define _WINBIND_NSS_NETBSD_H
26 #include <nsswitch.h>
28 /* dynamic nsswitch with "new" getpw* nsdispatch API available */
29 #if defined(NSS_MODULE_INTERFACE_VERSION) && defined(HAVE_GETPWENT_R)
31 typedef int NSS_STATUS;
33 #define NSS_STATUS_SUCCESS NS_SUCCESS
34 #define NSS_STATUS_NOTFOUND NS_NOTFOUND
35 #define NSS_STATUS_UNAVAIL NS_UNAVAIL
36 #define NSS_STATUS_TRYAGAIN NS_TRYAGAIN
38 #endif /* NSS_MODULE_INTERFACE_VERSION && HAVE_GETPWENT_R */
40 #endif /* _WINBIND_NSS_NETBSD_H */