Lines Matching refs:cred

141 	struct authdes_cred *cred;  in _svcauth_des()  local
167 cred = (struct authdes_cred *)&area->area_cred; in _svcauth_des()
174 cred->adc_namekind = IXDR_GET_ENUM(ixdr, enum authdes_namekind); in _svcauth_des()
175 switch (cred->adc_namekind) { in _svcauth_des()
180 cred->adc_fullname.name = area->area_netname; in _svcauth_des()
181 bcopy(ixdr, cred->adc_fullname.name, namelen); in _svcauth_des()
182 cred->adc_fullname.name[namelen] = 0; in _svcauth_des()
184 cred->adc_fullname.key.key.high = (uint32_t)*ixdr++; in _svcauth_des()
185 cred->adc_fullname.key.key.low = (uint32_t)*ixdr++; in _svcauth_des()
186 cred->adc_fullname.window = (uint32_t)*ixdr++; in _svcauth_des()
190 cred->adc_nickname = (uint32_t)*ixdr++; in _svcauth_des()
211 sessionkey = &cred->adc_fullname.key; in _svcauth_des()
212 if (key_decryptsession(cred->adc_fullname.name, sessionkey) != in _svcauth_des()
218 if (!(nick_entry = authdes_cache_get(cred->adc_nickname))) { in _svcauth_des()
220 cred->adc_nickname); in _svcauth_des()
234 cryptbuf[1].key.high = cred->adc_fullname.window; in _svcauth_des()
326 if (!(nick_entry = authdes_cache_new(cred->adc_fullname.name, in _svcauth_des()
361 cred->adc_nickname = nick_entry->nickname; in _svcauth_des()
362 cred->adc_fullname.window = window; in _svcauth_des()
364 cred->adc_namekind = ADN_FULLNAME; in _svcauth_des()
365 cred->adc_fullname.name = nick_entry->rname; in _svcauth_des()
366 cred->adc_fullname.key = nick_entry->key; in _svcauth_des()
367 cred->adc_fullname.window = nick_entry->window; in _svcauth_des()
435 struct bsdcred *cred; in kauthdes_getucred() local
448 cred = (struct bsdcred *)nickentry->localcred; in kauthdes_getucred()
449 if (!cred->valid) { in kauthdes_getucred()
454 &i_grouplen, &cred->groups[0]) != RPC_SUCCESS) { in kauthdes_getucred()
474 cred->uid = i_uid; in kauthdes_getucred()
475 cred->gid = i_gid; in kauthdes_getucred()
476 cred->grouplen = (short)i_grouplen; in kauthdes_getucred()
477 cred->valid = 1; in kauthdes_getucred()
483 if (crsetugid(cr, cred->uid, cred->gid) != 0 || in kauthdes_getucred()
484 crsetgroups(cr, cred->grouplen, &cred->groups[0]) != 0) { in kauthdes_getucred()