Lines Matching refs:auth

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