Lines Matching refs:task
391 gss_upcall_callback(struct rpc_task *task) in gss_upcall_callback() argument
393 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback()
401 task->tk_status = gss_msg->msg.errno; in gss_upcall_callback()
594 gss_refresh_upcall(struct rpc_task *task) in gss_refresh_upcall() argument
596 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall()
611 task, NULL, jiffies + (15 * HZ)); in gss_refresh_upcall()
622 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
627 rpc_sleep_on(&gss_msg->rpc_waitqueue, task, gss_upcall_callback); in gss_refresh_upcall()
1280 struct rpc_task *task; in gss_send_destroy_context() local
1287 task = rpc_call_null(gss_auth->client, &new->gc_base, in gss_send_destroy_context()
1289 if (!IS_ERR(task)) in gss_send_destroy_context()
1290 rpc_put_task(task); in gss_send_destroy_context()
1526 static int gss_marshal(struct rpc_task *task, struct xdr_stream *xdr) in gss_marshal() argument
1528 struct rpc_rqst *req = task->tk_rqstp; in gss_marshal()
1556 trace_rpcgss_seqno(task); in gss_marshal()
1597 trace_rpcgss_get_mic(task, maj_stat); in gss_marshal()
1602 static int gss_renew_cred(struct rpc_task *task) in gss_renew_cred() argument
1604 struct rpc_cred *oldcred = task->tk_rqstp->rq_cred; in gss_renew_cred()
1619 task->tk_rqstp->rq_cred = new; in gss_renew_cred()
1645 gss_refresh(struct rpc_task *task) in gss_refresh() argument
1647 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh()
1655 ret = gss_renew_cred(task); in gss_refresh()
1658 cred = task->tk_rqstp->rq_cred; in gss_refresh()
1662 ret = gss_refresh_upcall(task); in gss_refresh()
1669 gss_refresh_null(struct rpc_task *task) in gss_refresh_null() argument
1691 gss_validate(struct rpc_task *task, struct xdr_stream *xdr) in gss_validate() argument
1693 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_validate()
1715 maj_stat = gss_validate_seqno_mic(ctx, task->tk_rqstp->rq_seqnos[0], seq, p, len); in gss_validate()
1717 while (unlikely(maj_stat == GSS_S_BAD_SIG && i < task->tk_rqstp->rq_seqno_count)) in gss_validate()
1718 maj_stat = gss_validate_seqno_mic(ctx, task->tk_rqstp->rq_seqnos[i++], seq, p, len); in gss_validate()
1738 trace_rpcgss_verify_mic(task, maj_stat); in gss_validate()
1745 struct rpc_task *task, struct xdr_stream *xdr) in gss_wrap_req_integ() argument
1747 struct rpc_rqst *rqstp = task->tk_rqstp; in gss_wrap_req_integ()
1759 if (rpcauth_wrap_req_encode(task, xdr)) in gss_wrap_req_integ()
1784 trace_rpcgss_get_mic(task, maj_stat); in gss_wrap_req_integ()
1838 struct rpc_task *task, struct xdr_stream *xdr) in gss_wrap_req_priv() argument
1840 struct rpc_rqst *rqstp = task->tk_rqstp; in gss_wrap_req_priv()
1856 if (rpcauth_wrap_req_encode(task, xdr)) in gss_wrap_req_priv()
1909 trace_rpcgss_wrap(task, maj_stat); in gss_wrap_req_priv()
1913 static int gss_wrap_req(struct rpc_task *task, struct xdr_stream *xdr) in gss_wrap_req() argument
1915 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_wrap_req()
1926 status = rpcauth_wrap_req_encode(task, xdr); in gss_wrap_req()
1931 status = rpcauth_wrap_req_encode(task, xdr); in gss_wrap_req()
1934 status = gss_wrap_req_integ(cred, ctx, task, xdr); in gss_wrap_req()
1937 status = gss_wrap_req_priv(cred, ctx, task, xdr); in gss_wrap_req()
1955 static void gss_update_rslack(struct rpc_task *task, struct rpc_cred *cred, in gss_update_rslack() argument
1963 trace_rpcgss_update_slack(task, auth); in gss_update_rslack()
1968 gss_unwrap_resp_auth(struct rpc_task *task, struct rpc_cred *cred) in gss_unwrap_resp_auth() argument
1970 gss_update_rslack(task, cred, 0, 0); in gss_unwrap_resp_auth()
1988 gss_unwrap_resp_integ(struct rpc_task *task, struct rpc_cred *cred, in gss_unwrap_resp_integ() argument
2041 gss_update_rslack(task, cred, 2, 2 + 1 + XDR_QUADLEN(mic.len)); in gss_unwrap_resp_integ()
2049 trace_rpcgss_unwrap_failed(task); in gss_unwrap_resp_integ()
2052 trace_rpcgss_bad_seqno(task, *rqstp->rq_seqnos, seqno); in gss_unwrap_resp_integ()
2055 trace_rpcgss_verify_mic(task, maj_stat); in gss_unwrap_resp_integ()
2060 gss_unwrap_resp_priv(struct rpc_task *task, struct rpc_cred *cred, in gss_unwrap_resp_priv() argument
2092 gss_update_rslack(task, cred, 2 + ctx->gc_gss_ctx->align, in gss_unwrap_resp_priv()
2097 trace_rpcgss_unwrap_failed(task); in gss_unwrap_resp_priv()
2100 trace_rpcgss_bad_seqno(task, *rqstp->rq_seqnos, be32_to_cpup(--p)); in gss_unwrap_resp_priv()
2103 trace_rpcgss_unwrap(task, maj_stat); in gss_unwrap_resp_priv()
2114 gss_xmit_need_reencode(struct rpc_task *task) in gss_xmit_need_reencode() argument
2116 struct rpc_rqst *req = task->tk_rqstp; in gss_xmit_need_reencode()
2146 trace_rpcgss_need_reencode(task, seq_xmit, ret); in gss_xmit_need_reencode()
2151 gss_unwrap_resp(struct rpc_task *task, struct xdr_stream *xdr) in gss_unwrap_resp() argument
2153 struct rpc_rqst *rqstp = task->tk_rqstp; in gss_unwrap_resp()
2164 status = gss_unwrap_resp_auth(task, cred); in gss_unwrap_resp()
2167 status = gss_unwrap_resp_integ(task, cred, ctx, rqstp, xdr); in gss_unwrap_resp()
2170 status = gss_unwrap_resp_priv(task, cred, ctx, rqstp, xdr); in gss_unwrap_resp()
2177 status = rpcauth_unwrap_resp_decode(task, xdr); in gss_unwrap_resp()