Back to index

glibc  2.9
auth.h
Go to the documentation of this file.
00001 #ifndef _RPC_AUTH_H
00002 #include <sunrpc/rpc/auth.h>
00003 
00004 libc_hidden_proto (getnetname)
00005 libc_hidden_proto (netname2user)
00006 libc_hidden_proto (host2netname)
00007 libc_hidden_proto (user2netname)
00008 libc_hidden_proto (key_gendes)
00009 
00010 /* Now define the internal interfaces.  */
00011 struct key_netstarg;
00012 extern int key_setnet (struct key_netstarg *arg);
00013 
00014 #define DECLARE_NSS_PROTOTYPES(service)                               \
00015 extern enum nss_status _nss_ ##service ## _netname2user               \
00016                        (char netname[MAXNETNAMELEN + 1], uid_t *uidp, \
00017                      gid_t *gidp, int *gidlenp, gid_t *gidlist,       \
00018                      int *errnop);
00019 
00020 DECLARE_NSS_PROTOTYPES (nis)
00021 DECLARE_NSS_PROTOTYPES (nisplus)
00022 
00023 #undef DECLARE_NSS_PROTOTYPES
00024 
00025 extern bool_t xdr_des_block_internal (XDR *__xdrs, des_block *__blkp)
00026   attribute_hidden;
00027 extern bool_t xdr_opaque_auth_internal (XDR *, struct opaque_auth *)
00028   attribute_hidden;
00029 
00030 extern AUTH *authunix_create_internal (char *__machname, __uid_t __uid,
00031                                    __gid_t __gid, int __len,
00032                                    __gid_t *__aup_gids) attribute_hidden;
00033 extern AUTH *authunix_create_default_internal (void) attribute_hidden;
00034 extern AUTH *authnone_create_internal (void) attribute_hidden;
00035 extern AUTH *authdes_pk_create_internal (const char *, netobj *, u_int,
00036                                     struct sockaddr *,
00037                                     des_block *) attribute_hidden;
00038 
00039 libc_hidden_proto (key_encryptsession_pk)
00040 libc_hidden_proto (key_decryptsession_pk)
00041 
00042 #endif