Lines Matching refs:auth

63 #define AUTH_PRIVATE(auth)	(struct ad_private *) auth->ah_private  argument
154 AUTH *auth; in authdes_pk_seccreate() local
161 auth = ALLOC(AUTH); in authdes_pk_seccreate()
162 if (auth == NULL) { in authdes_pk_seccreate()
208 if (key_gendes(&auth->ah_key) < 0) { in authdes_pk_seccreate()
214 auth->ah_key = *ckey; in authdes_pk_seccreate()
220 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
221 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_pk_seccreate()
222 auth->ah_ops = authdes_ops(); in authdes_pk_seccreate()
223 auth->ah_private = (caddr_t)ad; in authdes_pk_seccreate()
225 if (!authdes_refresh(auth, NULL)) { in authdes_pk_seccreate()
229 return (auth); in authdes_pk_seccreate()
232 if (auth) in authdes_pk_seccreate()
233 FREE(auth, sizeof (AUTH)); in authdes_pk_seccreate()
260 authdes_nextverf(AUTH *auth __unused) in authdes_nextverf()
270 authdes_marshal(AUTH *auth, XDR *xdrs) in authdes_marshal() argument
273 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_marshal()
305 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
309 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
340 ATTEMPT(xdr_putint32(xdrs, (int *)&auth->ah_cred.oa_flavor)); in authdes_marshal()
350 ATTEMPT(xdr_putint32(xdrs, (int *)&auth->ah_verf.oa_flavor)); in authdes_marshal()
362 authdes_validate(AUTH *auth, struct opaque_auth *rverf) in authdes_validate() argument
365 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_validate()
383 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf, in authdes_validate()
421 authdes_refresh(AUTH *auth, void *dummy __unused) in authdes_refresh() argument
424 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_refresh()
442 ad->ad_xkey = auth->ah_key; in authdes_refresh()
461 authdes_destroy(AUTH *auth) in authdes_destroy() argument
464 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_destroy()
475 FREE(auth, sizeof(AUTH)); in authdes_destroy()