summaryrefslogtreecommitdiffstats
path: root/src/sss_client/protos.h
blob: 1c11ae6581d89646f8e9de15e934111dbdfaf818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
   SSSD

   Client Interface for NSS and PAM.

   Authors:
        Simo Sorce <ssorce@redhat.com>

   Copyright (C) Red Hat, Inc 2007

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#if 0
/* SHADOW database NSS interface */
enum nss_status _nss_sss_getspnam_r(const char *name, struct spwd *result,
				    char *buffer, size_t buflen, int *errnop);
enum nss_status _nss_sss_setspent(void);
enum nss_status _nss_sss_getspent_r(struct spwd *result,
				    char *buffer, size_t buflen, int *errnop);
enum nss_status _nss_sss_endspent(void);


/* HOSTS database NSS interface */
enum nss_status _nss_sss_gethostbyname_r(const char *name,
					 struct hostent *result,
					 char *buffer, size_t buflen,
					 int *errnop, int *h_errnop);
enum nss_status _nss_sss_gethostbyname2_r(const char *name, int af,
					  struct hostent *result,
					  char *buffer, size_t buflen,
					  int *errnop, int *h_errnop);
enum nss_status _nss_sss_gethostbyaddr_r(const void *addr, socklen_t len,
					 int af, struct hostent *result,
					 char *buffer, size_t buflen,
					 int *errnop, int *h_errnop);
enum nss_status _nss_sss_sethostent(void);
enum nss_status _nss_sss_gethostent_r(struct hostent *result,
				      char *buffer, size_t buflen,
				      int *errnop, int *h_errnop);
enum nss_status _nss_sss_endhostent(void);

/* NETGROUP database NSS interface */
enum nss_status _nss_sss_setnetgrent(const char *netgroup,
				     struct __netgrent *result);
enum nss_status _nss_sss_getnetgrent_r(struct __netgrent *result,
				       char *buffer, size_t buflen,
				       int *errnop);
enum nss_status _nss_ldap_endnetgrent(void);
/* too bad innetgr is currently implemented as an iteration over
 * {set|get|end}netgroup ... */

/* NETWORKS database NSS interface */
enum nss_status _nss_sss_getnetbyname_r(const char *name,
					struct netent *result,
					char *buffer, size_t buflen,
					int *errnop, int *h_errnop);
enum nss_status _nss_sss_getnetbyaddr_r(uint32_t addr, int af,
					struct netent *result,
					char *buffer, size_t buflen,
					int *errnop, int *h_errnop);
enum nss_status _nss_sss_setnetent(void);
enum nss_status _nss_sss_getnetent_r(struct netent *result,
				     char *buffer, size_t buflen,
				     int *errnop, int *h_errnop);
enum nss_status _nss_sss_endnetent(void);


/* PROTOCOLS database NSS interface */
enum nss_status _nss_sss_getprotobyname_r(const char *name,
					  struct protoent *result,
					  char *buffer, size_t buflen,
					  int *errnop);
enum nss_status _nss_sss_getprotobynumber_r(int number,
					    struct protoent *result,
					    char *buffer, size_t buflen,
					    int *errnop);
enum nss_status _nss_sss_setprotoent(void);
enum nss_status _nss_sss_getprotoent_r(struct protoent *result,
				       char *buffer, size_t buflen,
				       int *errnop);
enum nss_status _nss_sss_endprotoent(void);

/* SERVICES database NSS interface */
enum nss_status _nss_sss_getservbyname_r(const char *name,
					 const char *protocol,
					 struct servent *result,
					 char *buffer, size_t buflen,
					 int *errnop);
enum nss_status _nss_sss_getservbyport_r(int port, const char *protocol,
					 struct servent *result,
					 char *buffer, size_t buflen,
					 int *errnop);
enum nss_status _nss_sss_setservent(void);
enum nss_status _nss_sss_getservent_r(struct servent *result,
				      char *buffer, size_t buflen,
				      int *errnop);
enum nss_status _nss_sss_endservent(void);

/* ALIASES database NSS interface */
enum nss_status _nss_sss_getaliasbyname_r(const char *name,
					  struct aliasent *result,
					  char *buffer, size_t buflen,
					  int *errnop);
enum nss_status _nss_sss_setaliasent(void);
enum nss_status _nss_sss_getaliasent_r(struct aliasent *result,
				       char *buffer, size_t buflen,
				       int *errnop);
enum nss_status _nss_sss_endaliasent(void);

/* ETHERS database NSS interface */
enum nss_status _nss_sss_gethostton_r(const char *name,
				      struct etherent *result,
				      char *buffer, size_t buflen,
				      int *errnop);
enum nss_status _nss_sss_getntohost_r(const struct ether_addr *addr,
				      struct etherent *result,
				      char *buffer, size_t buflen,
				      int *errnop);
enum nss_status _nss_sss_setetherent(void);
enum nss_status _nss_sss_getetherent_r(struct etherent *result,
				       char *buffer, size_t buflen,
				       int *errnop);
enum nss_status _nss_sss_endetherent(void);

/* RPC database NSS interface */
enum nss_status _nss_sss_getrpcbyname_r(const char *name,
					struct rpcent *result,
					char *buffer, size_t buflen,
					int *errnop);
enum nss_status _nss_sss_getrpcbynumber_r(int number, struct rpcent *result,
					  char *buffer, size_t buflen,
					  int *errnop);
enum nss_status _nss_sss_setrpcent(void);
enum nss_status _nss_sss_getrpcent_r(struct rpcent *result,
				     char *buffer, size_t buflen,
				     int *errnop);
enum nss_status _nss_sss_endrpcent(void);

#endif