Lines Matching refs:auth
46 #include <rpc/auth.h>
65 #define AUTH_PRIVATE(auth) (struct ad_private *) auth->ah_private
156 AUTH *auth;
163 auth = ALLOC(AUTH);
164 if (auth == NULL) {
210 if (key_gendes(&auth->ah_key) < 0) {
216 auth->ah_key = *ckey;
220 * Set up auth handle
222 auth->ah_cred.oa_flavor = AUTH_DES;
223 auth->ah_verf.oa_flavor = AUTH_DES;
224 auth->ah_ops = authdes_ops();
225 auth->ah_private = (caddr_t)ad;
227 if (!authdes_refresh(auth, NULL)) {
231 return (auth);
234 if (auth)
235 FREE(auth, sizeof (AUTH));
262 authdes_nextverf(AUTH *auth)
272 authdes_marshal(AUTH *auth, XDR *xdrs)
275 struct ad_private *ad = AUTH_PRIVATE(auth);
307 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf,
311 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf,
342 ATTEMPT(xdr_putint32(xdrs, (int *)&auth->ah_cred.oa_flavor));
352 ATTEMPT(xdr_putint32(xdrs, (int *)&auth->ah_verf.oa_flavor));
364 authdes_validate(AUTH *auth, struct opaque_auth *rverf)
367 struct ad_private *ad = AUTH_PRIVATE(auth);
385 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf,
423 authdes_refresh(AUTH *auth, void *dummy)
426 struct ad_private *ad = AUTH_PRIVATE(auth);
444 ad->ad_xkey = auth->ah_key;
463 authdes_destroy(AUTH *auth)
466 struct ad_private *ad = AUTH_PRIVATE(auth);
477 FREE(auth, sizeof(AUTH));