Lines Matching refs:auth

130 	AUTH *auth;  in authdes_pk_seccreate()  local
137 auth = malloc(sizeof (AUTH)); in authdes_pk_seccreate()
138 if (auth == NULL) { in authdes_pk_seccreate()
184 if (key_gendes(&auth->ah_key) < 0) { in authdes_pk_seccreate()
190 auth->ah_key = *ckey; in authdes_pk_seccreate()
195 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
196 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
197 auth->ah_ops = authdes_ops(); in authdes_pk_seccreate()
198 auth->ah_private = (caddr_t)ad; in authdes_pk_seccreate()
200 if (!authdes_refresh(auth, NULL)) { in authdes_pk_seccreate()
204 return (auth); in authdes_pk_seccreate()
207 if (auth) in authdes_pk_seccreate()
208 free(auth); in authdes_pk_seccreate()
234 authdes_nextverf(AUTH *auth) in authdes_nextverf() argument
244 authdes_marshal(AUTH *auth, XDR *xdrs) in authdes_marshal() argument
247 struct ad_private *ad = (struct ad_private *)auth->ah_private; in authdes_marshal()
279 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
283 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
314 if (!xdr_putint32(xdrs, (int *)&auth->ah_cred.oa_flavor)) in authdes_marshal()
327 if (!xdr_putint32(xdrs, (int *)&auth->ah_verf.oa_flavor)) in authdes_marshal()
340 authdes_validate(AUTH *auth, struct opaque_auth *rverf) in authdes_validate() argument
343 struct ad_private *ad = (struct ad_private *)auth->ah_private; in authdes_validate()
360 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf, in authdes_validate()
398 authdes_refresh(AUTH *auth, void *dummy) in authdes_refresh() argument
401 struct ad_private *ad = (struct ad_private *)auth->ah_private; in authdes_refresh()
419 ad->ad_xkey = auth->ah_key; in authdes_refresh()
438 authdes_destroy(AUTH *auth) in authdes_destroy() argument
441 struct ad_private *ad = (struct ad_private *)auth->ah_private; in authdes_destroy()
452 free(auth); in authdes_destroy()