Lines Matching full:auth
1 /* @(#)auth.h 2.3 88/08/07 4.0 RPCSRC; from 1.17 88/02/08 SMI */
36 * auth.h, Authentication interface.
39 * is required to pass a AUTH * to routines that create rpc
87 enum_t oa_flavor; /* flavor of auth */
88 caddr_t oa_base; /* address of more auth stuff */
94 * Auth handle, interface to client side authenticators.
98 typedef struct AUTH { struct
103 void (*ah_nextverf)(struct AUTH *); argument
105 int (*ah_marshal)(struct AUTH *, XDR *);
107 int (*ah_validate)(struct AUTH *,
110 int (*ah_refresh)(struct AUTH *, struct rpc_msg *);
112 void (*ah_destroy)(struct AUTH *);
114 int (*ah_wrap)(struct AUTH *, XDR *,
117 int (*ah_unwrap)(struct AUTH *, XDR *,
121 } AUTH; typedef
126 * The ops and the auth handle provide the interface to the authenticators.
128 * AUTH *auth;
132 #define AUTH_NEXTVERF(auth) \ argument
133 ((*((auth)->ah_ops->ah_nextverf))(auth))
134 #define auth_nextverf(auth) \ argument
135 ((*((auth)->ah_ops->ah_nextverf))(auth))
137 #define AUTH_MARSHALL(auth, xdrs) \ argument
138 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
139 #define auth_marshall(auth, xdrs) \ argument
140 ((*((auth)->ah_ops->ah_marshal))(auth, xdrs))
142 #define AUTH_VALIDATE(auth, verfp) \ argument
143 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
144 #define auth_validate(auth, verfp) \ argument
145 ((*((auth)->ah_ops->ah_validate))((auth), verfp))
147 #define AUTH_REFRESH(auth, msg) \ argument
148 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
149 #define auth_refresh(auth, msg) \ argument
150 ((*((auth)->ah_ops->ah_refresh))(auth, msg))
152 #define AUTH_WRAP(auth, xdrs, xfunc, xwhere) \ argument
153 ((*((auth)->ah_ops->ah_wrap))(auth, xdrs, \
155 #define auth_wrap(auth, xdrs, xfunc, xwhere) \ argument
156 ((*((auth)->ah_ops->ah_wrap))(auth, xdrs, \
158 #define AUTH_UNWRAP(auth, xdrs, xfunc, xwhere) \ argument
159 ((*((auth)->ah_ops->ah_unwrap))(auth, xdrs, \
161 #define auth_unwrap(auth, xdrs, xfunc, xwhere) \ argument
162 ((*((auth)->ah_ops->ah_unwrap))(auth, xdrs, \
165 #define AUTH_DESTROY(auth) \ argument
166 ((*((auth)->ah_ops->ah_destroy))(auth))
167 #define auth_destroy(auth) \ argument
168 ((*((auth)->ah_ops->ah_destroy))(auth))
182 * AUTH *authunix_create(machname, uid, gid, len, aup_gids)
189 extern AUTH *authunix_create(char *machname, int uid, int gid, int len,
191 extern AUTH *authunix_create_default(void); /* takes no parameters */
192 extern AUTH *authnone_create(void); /* takes no parameters */