Lines Matching refs:auth

67 #define AUTH_PRIVATE(auth)	(struct ad_private *) auth->ah_private  argument
158 AUTH *auth; in authdes_pk_seccreate() local
165 auth = ALLOC(AUTH); in authdes_pk_seccreate()
166 if (auth == NULL) { in authdes_pk_seccreate()
212 if (key_gendes(&auth->ah_key) < 0) { in authdes_pk_seccreate()
218 auth->ah_key = *ckey; in authdes_pk_seccreate()
224 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
225 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
226 auth->ah_ops = authdes_ops(); in authdes_pk_seccreate()
227 auth->ah_private = (caddr_t)ad; in authdes_pk_seccreate()
229 if (!authdes_refresh(auth, NULL)) { in authdes_pk_seccreate()
233 return (auth); in authdes_pk_seccreate()
236 if (auth) in authdes_pk_seccreate()
237 FREE(auth, sizeof (AUTH)); in authdes_pk_seccreate()
264 authdes_nextverf(AUTH *auth __unused) in authdes_nextverf()
274 authdes_marshal(AUTH *auth, XDR *xdrs) in authdes_marshal() argument
277 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_marshal()
309 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
313 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
344 ATTEMPT(xdr_putint32(xdrs, (int *)&auth->ah_cred.oa_flavor)); in authdes_marshal()
354 ATTEMPT(xdr_putint32(xdrs, (int *)&auth->ah_verf.oa_flavor)); in authdes_marshal()
366 authdes_validate(AUTH *auth, struct opaque_auth *rverf) in authdes_validate() argument
369 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_validate()
387 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf, in authdes_validate()
425 authdes_refresh(AUTH *auth, void *dummy __unused) in authdes_refresh() argument
428 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_refresh()
446 ad->ad_xkey = auth->ah_key; in authdes_refresh()
465 authdes_destroy(AUTH *auth) in authdes_destroy() argument
468 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_destroy()
479 FREE(auth, sizeof(AUTH)); in authdes_destroy()