Lines Matching refs:auth
1 /* $NetBSD: auth.h,v 1.20 2020/10/03 18:30:39 christos Exp $ */
31 * from: @(#)auth.h 1.17 88/02/08 SMI
32 * @(#)auth.h 2.3 88/08/07 4.0 RPCSRC
36 * auth.h, Authentication interface.
41 * is required to pass a AUTH * to routines that create rpc
88 enum_t oa_flavor; /* flavor of auth */
89 caddr_t oa_base; /* address of more auth stuff */
95 * Auth handle, interface to client side authenticators.
114 } AUTH;
119 * The ops and the auth handle provide the interface to the authenticators.
121 * AUTH *auth;
125 #define AUTH_NEXTVERF(auth) \
126 ((*((auth)->ah_ops->ah_nextverf))(auth))
127 #define auth_nextverf(auth) \
128 ((*((auth)->ah_ops->ah_nextverf))(auth))
130 #define AUTH_MARSHALL(auth, xdrs) \
131 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
132 #define auth_marshall(auth, xdrs) \
133 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
135 #define AUTH_VALIDATE(auth, verfp) \
136 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
137 #define auth_validate(auth, verfp) \
138 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
140 #define AUTH_REFRESH(auth) \
141 ((*((auth)->ah_ops->ah_refresh))(auth))
142 #define auth_refresh(auth) \
143 ((*((auth)->ah_ops->ah_refresh))(auth))
145 #define AUTH_DESTROY(auth) \
146 ((*((auth)->ah_ops->ah_destroy))(auth))
147 #define auth_destroy(auth) \
148 ((*((auth)->ah_ops->ah_destroy))(auth))
160 * AUTH *authunix_create(machname, uid, gid, len, aup_gids)
169 extern AUTH *authunix_create (char *, int, int, int, int *);
170 extern AUTH *authunix_create_default (void);
171 extern AUTH *authnone_create (void);
172 extern AUTH *authdes_create (char *, unsigned int,