Lines Matching defs:AUTH
1 /* @(#)auth.h 2.3 88/08/07 4.0 RPCSRC; from 1.17 88/02/08 SMI */
32 * auth.h, Authentication interface.
37 * is required to pass a AUTH * to routines that create rpc
86 enum_t oa_flavor; /* flavor of auth */
87 caddr_t oa_base; /* address of more auth stuff */
92 * Auth handle, interface to client side authenticators.
94 typedef struct AUTH AUTH;
95 struct AUTH {
100 void (*ah_nextverf) (AUTH *);
101 int (*ah_marshal) (AUTH *, XDR *); /* nextverf & serialize */
102 int (*ah_validate) (AUTH *, struct opaque_auth *);
104 int (*ah_refresh) (AUTH *); /* refresh credentials */
105 void (*ah_destroy) (AUTH *); /* destroy this structure */
113 * The ops and the auth handle provide the interface to the authenticators.
115 * AUTH *auth;
119 #define AUTH_NEXTVERF(auth) \
120 ((*((auth)->ah_ops->ah_nextverf))(auth))
121 #define auth_nextverf(auth) \
122 ((*((auth)->ah_ops->ah_nextverf))(auth))
124 #define AUTH_MARSHALL(auth, xdrs) \
125 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
126 #define auth_marshall(auth, xdrs) \
127 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
129 #define AUTH_VALIDATE(auth, verfp) \
130 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
131 #define auth_validate(auth, verfp) \
132 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
134 #define AUTH_REFRESH(auth) \
135 ((*((auth)->ah_ops->ah_refresh))(auth))
136 #define auth_refresh(auth) \
137 ((*((auth)->ah_ops->ah_refresh))(auth))
139 #define AUTH_DESTROY(auth) \
140 ((*((auth)->ah_ops->ah_destroy))(auth))
141 #define auth_destroy(auth) \
142 ((*((auth)->ah_ops->ah_destroy))(auth))
154 * AUTH *authunix_create(machname, uid, gid, len, aup_gids)
161 extern AUTH *authunix_create (char *__machname, __uid_t __uid, __gid_t __gid,
163 extern AUTH *authunix_create_default (void);
164 extern AUTH *authnone_create (void) __THROW;
165 extern AUTH *authdes_create (const char *__servername, u_int __window,
168 extern AUTH *authdes_pk_create (const char *, netobj *, u_int,
213 #endif /* rpc/auth.h */