Lines Matching defs:task
610 rpcauth_bind_root_cred(struct rpc_task *task, int lookupflags)
612 struct rpc_auth *auth = task->tk_client->cl_auth;
624 rpcauth_bind_machine_cred(struct rpc_task *task, int lookupflags)
626 struct rpc_auth *auth = task->tk_client->cl_auth;
628 .principal = task->tk_client->cl_principal,
638 rpcauth_bind_new_cred(struct rpc_task *task, int lookupflags)
640 struct rpc_auth *auth = task->tk_client->cl_auth;
646 rpcauth_bindcred(struct rpc_task *task, const struct cred *cred, int flags)
648 struct rpc_rqst *req = task->tk_rqstp;
651 struct rpc_auth *auth = task->tk_client->cl_auth;
658 if (task->tk_op_cred)
660 new = get_rpccred(task->tk_op_cred);
664 new = rpcauth_bind_machine_cred(task, lookupflags);
670 new = rpcauth_bind_root_cred(task, lookupflags);
674 new = rpcauth_bind_new_cred(task, lookupflags);
715 * @task: controlling RPC task
723 int rpcauth_marshcred(struct rpc_task *task, struct xdr_stream *xdr)
725 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops;
727 return ops->crmarshal(task, xdr);
732 * @task: controlling RPC task
738 int rpcauth_wrap_req_encode(struct rpc_task *task, struct xdr_stream *xdr)
740 kxdreproc_t encode = task->tk_msg.rpc_proc->p_encode;
742 encode(task->tk_rqstp, xdr, task->tk_msg.rpc_argp);
749 * @task: controlling RPC task
756 int rpcauth_wrap_req(struct rpc_task *task, struct xdr_stream *xdr)
758 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops;
760 return ops->crwrap_req(task, xdr);
765 * @task: controlling RPC task
773 rpcauth_checkverf(struct rpc_task *task, struct xdr_stream *xdr)
775 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops;
777 return ops->crvalidate(task, xdr);
782 * @task: controlling RPC task
788 rpcauth_unwrap_resp_decode(struct rpc_task *task, struct xdr_stream *xdr)
790 kxdrdproc_t decode = task->tk_msg.rpc_proc->p_decode;
792 return decode(task->tk_rqstp, xdr, task->tk_msg.rpc_resp);
798 * @task: controlling RPC task
804 rpcauth_unwrap_resp(struct rpc_task *task, struct xdr_stream *xdr)
806 const struct rpc_credops *ops = task->tk_rqstp->rq_cred->cr_ops;
808 return ops->crunwrap_resp(task, xdr);
812 rpcauth_xmit_need_reencode(struct rpc_task *task)
814 struct rpc_cred *cred = task->tk_rqstp->rq_cred;
818 return cred->cr_ops->crneed_reencode(task);
822 rpcauth_refreshcred(struct rpc_task *task)
827 cred = task->tk_rqstp->rq_cred;
829 err = rpcauth_bindcred(task, task->tk_msg.rpc_cred, task->tk_flags);
832 cred = task->tk_rqstp->rq_cred;
835 err = cred->cr_ops->crrefresh(task);
838 task->tk_status = err;
843 rpcauth_invalcred(struct rpc_task *task)
845 struct rpc_cred *cred = task->tk_rqstp->rq_cred;
852 rpcauth_uptodatecred(struct rpc_task *task)
854 struct rpc_cred *cred = task->tk_rqstp->rq_cred;