diff options
author | Mystery Man <unknown@mandriva.org> | 2003-10-29 16:07:11 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-10-29 16:07:11 +0000 |
commit | fa40f30b4253b1e05c46cc5e0c111176825b7623 (patch) | |
tree | 76cf2d26c0ce0ee7c6a2c1a1a2b65bc4d8e33029 /mdk-stage1/dietlibc/include/rpc/auth.h | |
parent | 327bd24f8e4291bd1882de1990dd7339f781a9cb (diff) | |
download | drakx-backup-do-not-use-Corpo_2_1_1.tar drakx-backup-do-not-use-Corpo_2_1_1.tar.gz drakx-backup-do-not-use-Corpo_2_1_1.tar.bz2 drakx-backup-do-not-use-Corpo_2_1_1.tar.xz drakx-backup-do-not-use-Corpo_2_1_1.zip |
This commit was manufactured by cvs2svn to create tag 'Corpo_2_1_1'.Corpo_2_1_1
Diffstat (limited to 'mdk-stage1/dietlibc/include/rpc/auth.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/rpc/auth.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/mdk-stage1/dietlibc/include/rpc/auth.h b/mdk-stage1/dietlibc/include/rpc/auth.h index 4aa7d21ce..6e0ae0675 100644 --- a/mdk-stage1/dietlibc/include/rpc/auth.h +++ b/mdk-stage1/dietlibc/include/rpc/auth.h @@ -42,6 +42,7 @@ #define _RPC_AUTH_H 1 #include <sys/cdefs.h> +#include <sys/socket.h> #include <rpc/xdr.h> __BEGIN_DECLS @@ -71,8 +72,8 @@ enum auth_stat { union des_block { struct { - u_int32_t high; - u_int32_t low; + uint32_t high; + uint32_t low; } key; char c[8]; }; @@ -84,8 +85,8 @@ extern bool_t xdr_des_block (XDR *__xdrs, des_block *__blkp) __THROW; */ struct opaque_auth { enum_t oa_flavor; /* flavor of auth */ - caddr_t oa_base; /* address of more auth stuff */ - u_int oa_length; /* not to exceed MAX_AUTH_BYTES */ + char* oa_base; /* address of more auth stuff */ + unsigned int oa_length; /* not to exceed MAX_AUTH_BYTES */ }; /* @@ -104,7 +105,7 @@ struct AUTH { int (*ah_refresh) (AUTH *); /* refresh credentials */ void (*ah_destroy) (AUTH *); /* destroy this structure */ } *ah_ops; - caddr_t ah_private; + char* ah_private; }; @@ -162,10 +163,10 @@ extern AUTH *authunix_create (char *__machname,uid_t __uid, gid_t __gid, int __len, gid_t *__aup_gids) __THROW; extern AUTH *authunix_create_default (void) __THROW; extern AUTH *authnone_create (void) __THROW; -extern AUTH *authdes_create (const char *__servername, u_int __window, +extern AUTH *authdes_create (const char *__servername, unsigned int __window, struct sockaddr *__syncaddr, des_block *__ckey) __THROW; -extern AUTH *authdes_pk_create (const char *, netobj *, u_int, +extern AUTH *authdes_pk_create (const char *, netobj *, unsigned int, struct sockaddr *, des_block *) __THROW; @@ -183,11 +184,11 @@ extern AUTH *authdes_pk_create (const char *, netobj *, u_int, * */ extern int getnetname (char *) __THROW; -extern int host2netname (char *, __const char *, __const char *) __THROW; -extern int user2netname (char *, __const uid_t, __const char *) __THROW; -extern int netname2user (__const char *, uid_t *, gid_t *, int *, gid_t *) +extern int host2netname (char *, const char *, const char *) __THROW; +extern int user2netname (char *, const uid_t, const char *) __THROW; +extern int netname2user (const char *, uid_t *, gid_t *, int *, gid_t *) __THROW; -extern int netname2host (__const char *, char *, __const int) __THROW; +extern int netname2host (const char *, char *, const int) __THROW; /* * |