Lines Matching refs:auth

60 #define	AUTH_PRIVATE(auth)	(struct ad_private *)auth->ah_private  argument
109 AUTH *auth; in authdes_create() local
123 auth = ALLOC(AUTH); in authdes_create()
139 if (auth == NULL || ad == NULL || ad->ad_fullname == NULL || in authdes_create()
163 if ((stat = key_gendes(&auth->ah_key)) != RPC_SUCCESS) { in authdes_create()
176 auth->ah_key = *ckey; in authdes_create()
181 auth->ah_cred.oa_flavor = AUTH_DES; in authdes_create()
182 auth->ah_verf.oa_flavor = AUTH_DES; in authdes_create()
183 auth->ah_ops = authdes_ops(); in authdes_create()
184 auth->ah_private = (caddr_t)ad; in authdes_create()
186 if (!authdes_refresh(auth, NULL, CRED())) in authdes_create()
189 *retauth = auth; in authdes_create()
199 if (auth != NULL) in authdes_create()
200 FREE(auth, sizeof (AUTH)); in authdes_create()
213 authdes_nextverf(AUTH *auth) in authdes_nextverf() argument
223 authdes_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) in authdes_marshal() argument
226 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_marshal()
258 status = cbc_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
261 status = ecb_crypt((char *)&auth->ah_key, (char *)cryptbuf, in authdes_marshal()
292 (int32_t *)&auth->ah_cred.oa_flavor)); in authdes_marshal()
303 (int32_t *)&auth->ah_verf.oa_flavor)); in authdes_marshal()
314 authdes_validate(AUTH *auth, struct opaque_auth *rverf) in authdes_validate() argument
317 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_validate()
335 status = ecb_crypt((char *)&auth->ah_key, (char *)&buf, in authdes_validate()
375 authdes_refresh(AUTH *auth, struct rpc_msg *msg, cred_t *cr) in authdes_refresh() argument
378 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_refresh()
392 ad->ad_xkey = auth->ah_key; in authdes_refresh()
411 authdes_destroy(AUTH *auth) in authdes_destroy() argument
414 struct ad_private *ad = AUTH_PRIVATE(auth); in authdes_destroy()
419 FREE(auth, sizeof (AUTH)); in authdes_destroy()