Lines Matching refs:rpc_cred

88 rpcauth_crdestroy(struct rpc_cred *cred)  in rpcauth_crdestroy()
104 void rpcauth_destroy_credlist(struct rpc_cred *head) in rpcauth_destroy_credlist()
106 struct rpc_cred *cred; in rpcauth_destroy_credlist()
121 struct rpc_cred **q, *cred, *free = NULL; in rpcauth_free_credcache()
147 struct rpc_cred **q, *cred, *free = NULL; in rpcauth_gc_credcache()
175 rpcauth_insert_credcache(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_insert_credcache()
191 static struct rpc_cred *
194 struct rpc_cred **q, *cred = NULL; in rpcauth_lookup_credcache()
226 return (struct rpc_cred *) cred; in rpcauth_lookup_credcache()
233 rpcauth_remove_credcache(struct rpc_cred *cred) in rpcauth_remove_credcache()
236 struct rpc_cred **q, *cr; in rpcauth_remove_credcache()
252 struct rpc_cred *
260 struct rpc_cred *
267 task->tk_msg.rpc_cred = rpcauth_lookup_credcache(auth, task->tk_flags); in rpcauth_bindcred()
268 if (task->tk_msg.rpc_cred == 0) in rpcauth_bindcred()
270 return task->tk_msg.rpc_cred; in rpcauth_bindcred()
274 rpcauth_matchcred(struct rpc_auth *auth, struct rpc_cred *cred, int taskflags) in rpcauth_matchcred()
285 task->tk_pid, task->tk_auth->au_ops->au_name, task->tk_msg.rpc_cred); in rpcauth_holdcred()
286 if (task->tk_msg.rpc_cred) in rpcauth_holdcred()
287 get_rpccred(task->tk_msg.rpc_cred); in rpcauth_holdcred()
291 put_rpccred(struct rpc_cred *cred) in put_rpccred()
312 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_unbindcred()
318 task->tk_msg.rpc_cred = NULL; in rpcauth_unbindcred()
325 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_marshcred()
337 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_checkverf()
348 struct rpc_cred *cred = task->tk_msg.rpc_cred; in rpcauth_refreshcred()
360 task->tk_pid, task->tk_auth->au_ops->au_name, task->tk_msg.rpc_cred); in rpcauth_invalcred()
362 if (task->tk_msg.rpc_cred) in rpcauth_invalcred()
363 task->tk_msg.rpc_cred->cr_flags &= ~RPCAUTH_CRED_UPTODATE; in rpcauth_invalcred()
372 retval = !(task->tk_msg.rpc_cred) || in rpcauth_uptodatecred()
373 (task->tk_msg.rpc_cred->cr_flags & RPCAUTH_CRED_UPTODATE); in rpcauth_uptodatecred()