Fix memory leak in dlopen with RTLD_NOLOAD.
[glibc.git] / include / rpc / auth.h
bloba03188ed44568cf90439b78dfb60997e691bee37
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 attribute_hidden;
27 extern bool_t xdr_opaque_auth_internal (XDR *, struct opaque_auth *)
28 attribute_hidden;
30 extern AUTH *authunix_create_internal (char *__machname, __uid_t __uid,
31 __gid_t __gid, int __len,
32 __gid_t *__aup_gids) attribute_hidden;
33 extern AUTH *authunix_create_default_internal (void) attribute_hidden;
34 extern AUTH *authnone_create_internal (void) attribute_hidden;
35 extern AUTH *authdes_pk_create_internal (const char *, netobj *, u_int,
36 struct sockaddr *,
37 des_block *) attribute_hidden;
39 libc_hidden_proto (key_encryptsession_pk)
40 libc_hidden_proto (key_decryptsession_pk)
42 libc_hidden_proto (_null_auth)
44 #endif