Lines Matching refs:auth
50 #include <rpc/auth.h>
62 #define AUTH_PRIVATE(auth) (struct ad_private *)auth->ah_private
111 AUTH *auth;
125 auth = ALLOC(AUTH);
141 if (auth == NULL || ad == NULL || ad->ad_fullname == NULL ||
165 if ((stat = key_gendes(&auth->ah_key)) != RPC_SUCCESS) {
178 auth->ah_key = *ckey;
181 * Set up auth handle
183 auth->ah_cred.oa_flavor = AUTH_DES;
184 auth->ah_verf.oa_flavor = AUTH_DES;
185 auth->ah_ops = authdes_ops();
186 auth->ah_private = (caddr_t)ad;
188 if (!authdes_refresh(auth, NULL, CRED()))
191 *retauth = auth;
201 if (auth != NULL)
202 FREE(auth, sizeof (AUTH));
215 authdes_nextverf(AUTH *auth)
225 authdes_marshal(AUTH *auth, XDR *xdrs, struct cred *cr)
228 struct ad_private *ad = AUTH_PRIVATE(auth);
260 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf,
263 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf,
294 (int32_t *)&auth->ah_cred.oa_flavor));
305 (int32_t *)&auth->ah_verf.oa_flavor));
316 authdes_validate(AUTH *auth, struct opaque_auth *rverf)
319 struct ad_private *ad = AUTH_PRIVATE(auth);
337 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf,
377 authdes_refresh(AUTH *auth, struct rpc_msg *msg, cred_t *cr)
380 struct ad_private *ad = AUTH_PRIVATE(auth);
394 ad->ad_xkey = auth->ah_key;
413 authdes_destroy(AUTH *auth)
416 struct ad_private *ad = AUTH_PRIVATE(auth);
421 FREE(auth, sizeof (AUTH));