Lines Matching full:auth
1 /* $NetBSD: auth.h,v 1.15 2000/06/02 22:57:55 fvdl Exp $ */
34 * auth.h, Authentication interface.
39 * is required to pass an AUTH * to routines that create rpc
167 enum_t oa_flavor; /* flavor of auth */
168 caddr_t oa_base; /* address of more auth stuff */
174 * Auth handle, interface to client side authenticators.
195 } AUTH; typedef
200 * The ops and the auth handle provide the interface to the authenticators.
202 * AUTH *auth;
206 #define AUTH_NEXTVERF(auth) \ argument
207 ((*((auth)->ah_ops->ah_nextverf))(auth))
209 #define AUTH_MARSHALL(auth, xid, xdrs, args) \ argument
210 ((*((auth)->ah_ops->ah_marshal))(auth, xid, xdrs, args))
212 #define AUTH_VALIDATE(auth, xid, verfp, resultsp) \ argument
213 ((*((auth)->ah_ops->ah_validate))((auth), xid, verfp, resultsp))
215 #define AUTH_REFRESH(auth, msg) \ argument
216 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
218 #define AUTH_DESTROY(auth) \ argument
219 ((*((auth)->ah_ops->ah_destroy))(auth))
231 * AUTH *authunix_create(machname, uid, gid, len, aup_gids)
241 extern AUTH *authunix_create(struct ucred *);
243 extern AUTH *authunix_create(char *, u_int, u_int, int, u_int *);
244 extern AUTH *authunix_create_default(void); /* takes no parameters */
246 extern AUTH *authnone_create(void); /* takes no parameters */
247 extern AUTH *authtls_create(void); /* takes no parameters */
251 * AUTH *authsecdes_create(servername, window, timehost, ckey)
258 extern AUTH *authdes_create (char *, u_int, struct sockaddr *, des_block *);
259 extern AUTH *authdes_seccreate (const char *, const u_int, const char *,
307 * AUTH *authkerb_seccreate(service, srv_inst, realm, window, timehost, status)
316 extern AUTH *authkerb_seccreate(const char *, const char *, const char *,
362 * Pseudo auth flavors for RPCSEC_GSS.