Lines Matching refs:auth
248 struct gss_auth *auth; member
284 struct net *net = gss_msg->auth->net; in gss_release_msg()
292 gss_put_auth(gss_msg->auth); in gss_release_msg()
298 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
304 if (auth && pos->auth->service != auth->service) in __gss_find_upcall()
323 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
419 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
497 gss_msg->auth->target_name, in gss_v1_upcall()
526 gss_msg->auth = gss_auth; in gss_alloc_msg()
742 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
1001 struct rpc_auth * auth; in gss_create_new() local
1026 auth = &gss_auth->rpc_auth; in gss_create_new()
1027 auth->au_cslack = GSS_CRED_SLACK >> 2; in gss_create_new()
1028 auth->au_rslack = GSS_KRB5_MAX_SLACK_NEEDED >> 2; in gss_create_new()
1029 auth->au_verfsize = GSS_VERF_SLACK >> 2; in gss_create_new()
1030 auth->au_ralign = GSS_VERF_SLACK >> 2; in gss_create_new()
1031 __set_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags); in gss_create_new()
1032 auth->au_ops = &authgss_ops; in gss_create_new()
1033 auth->au_flavor = flavor; in gss_create_new()
1035 __set_bit(RPCAUTH_AUTH_DATATOUCH, &auth->au_flags); in gss_create_new()
1036 refcount_set(&auth->au_count, 1); in gss_create_new()
1039 err = rpcauth_init_credcache(auth); in gss_create_new()
1067 rpcauth_destroy_credcache(auth); in gss_create_new()
1109 gss_destroy(struct rpc_auth *auth) in gss_destroy() argument
1111 struct gss_auth *gss_auth = container_of(auth, in gss_destroy()
1124 rpcauth_destroy_credcache(auth); in gss_destroy()
1342 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument
1344 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in gss_lookup_cred()
1348 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument
1350 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth); in gss_create_cred()
1357 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred()
1373 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred) in gss_cred_init() argument
1375 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth); in gss_cred_init()
1580 struct rpc_auth *auth = oldcred->cr_auth; in gss_renew_cred() local
1587 new = gss_lookup_cred(auth, &acred, RPCAUTH_LOOKUP_NEW); in gss_renew_cred()
1917 struct rpc_auth *auth = cred->cr_auth; in gss_update_rslack() local
1919 if (test_and_clear_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags)) { in gss_update_rslack()
1920 auth->au_ralign = auth->au_verfsize + before; in gss_update_rslack()
1921 auth->au_rslack = auth->au_verfsize + after; in gss_update_rslack()
1922 trace_rpcgss_update_slack(task, auth); in gss_update_rslack()