Lines Matching defs:auth
132 AUTH *auth;
139 auth = malloc(sizeof (AUTH));
140 if (auth == NULL) {
186 if (key_gendes(&auth->ah_key) < 0) {
192 auth->ah_key = *ckey;
195 * Set up auth handle
197 auth->ah_cred.oa_flavor = AUTH_DES;
198 auth->ah_verf.oa_flavor = AUTH_DES;
199 auth->ah_ops = authdes_ops();
200 auth->ah_private = (caddr_t)ad;
202 if (!authdes_refresh(auth, NULL)) {
206 return (auth);
209 if (auth)
210 free(auth);
236 authdes_nextverf(AUTH *auth)
246 authdes_marshal(AUTH *auth, XDR *xdrs)
249 struct ad_private *ad = (struct ad_private *)auth->ah_private;
281 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf,
285 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf,
316 if (!xdr_putint32(xdrs, (int *)&auth->ah_cred.oa_flavor))
329 if (!xdr_putint32(xdrs, (int *)&auth->ah_verf.oa_flavor))
342 authdes_validate(AUTH *auth, struct opaque_auth *rverf)
345 struct ad_private *ad = (struct ad_private *)auth->ah_private;
362 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf,
400 authdes_refresh(AUTH *auth, void *dummy)
403 struct ad_private *ad = (struct ad_private *)auth->ah_private;
421 ad->ad_xkey = auth->ah_key;
440 authdes_destroy(AUTH *auth)
443 struct ad_private *ad = (struct ad_private *)auth->ah_private;
454 free(auth);