.
[glibc/history.git] / include / rpc / auth.h
bloba5e290b898b869cbc2e6cf9b44fac493169c6e42
1 #ifndef _RPC_AUTH_H
2 #include <sunrpc/rpc/auth.h>
4 libc_hidden_proto (getnetname)
5 libc_hidden_proto (netname2user)
6 libc_hidden_proto (host2netname)
7 libc_hidden_proto (user2netname)
8 libc_hidden_proto (key_gendes)
10 /* Now define the internal interfaces. */
11 struct key_netstarg;
12 extern int key_setnet (struct key_netstarg *arg);
14 #define DECLARE_NSS_PROTOTYPES(service) \
15 extern enum nss_status _nss_ ##service ## _netname2user \
16 (char netname[MAXNETNAMELEN + 1], uid_t *uidp, \
17 gid_t *gidp, int *gidlenp, gid_t *gidlist, \
18 int *errnop);
20 DECLARE_NSS_PROTOTYPES (nis)
21 DECLARE_NSS_PROTOTYPES (nisplus)
23 #undef DECLARE_NSS_PROTOTYPES
25 extern bool_t xdr_des_block_internal (XDR *__xdrs, des_block *__blkp);
26 extern bool_t xdr_opaque_auth_internal (XDR *, struct opaque_auth *);
28 extern AUTH *authunix_create_internal (char *__machname, __uid_t __uid,
29 __gid_t __gid, int __len,
30 __gid_t *__aup_gids) attribute_hidden;
31 extern AUTH *authunix_create_default_internal (void) attribute_hidden;
32 extern AUTH *authnone_create_internal (void) attribute_hidden;
33 extern AUTH *authdes_pk_create_internal (const char *, netobj *, u_int,
34 struct sockaddr *,
35 des_block *) attribute_hidden;
37 libc_hidden_proto (key_encryptsession_pk)
38 libc_hidden_proto (key_decryptsession_pk)
40 #endif