Lines Matching refs:auth
276 struct gss_auth *auth; member
312 struct net *net = gss_msg->auth->net; in gss_release_msg()
320 gss_put_auth(gss_msg->auth); in gss_release_msg()
326 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
332 if (auth && pos->auth->service != auth->service) in __gss_find_upcall()
351 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
447 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
525 gss_msg->auth->target_name, in gss_v1_upcall()
554 gss_msg->auth = gss_auth; in gss_alloc_msg()
770 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
1029 struct rpc_auth * auth; in gss_create_new() local
1054 auth = &gss_auth->rpc_auth; in gss_create_new()
1055 auth->au_cslack = GSS_CRED_SLACK >> 2; in gss_create_new()
1056 auth->au_rslack = GSS_KRB5_MAX_SLACK_NEEDED >> 2; in gss_create_new()
1057 auth->au_verfsize = GSS_VERF_SLACK >> 2; in gss_create_new()
1058 auth->au_ralign = GSS_VERF_SLACK >> 2; in gss_create_new()
1059 __set_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags); in gss_create_new()
1060 auth->au_ops = &authgss_ops; in gss_create_new()
1061 auth->au_flavor = flavor; in gss_create_new()
1063 __set_bit(RPCAUTH_AUTH_DATATOUCH, &auth->au_flags); in gss_create_new()
1064 refcount_set(&auth->au_count, 1); in gss_create_new()
1067 err = rpcauth_init_credcache(auth); in gss_create_new()
1095 rpcauth_destroy_credcache(auth); in gss_create_new()
1137 gss_destroy(struct rpc_auth *auth) in gss_destroy() argument
1139 struct gss_auth *gss_auth = container_of(auth, in gss_destroy()
1152 rpcauth_destroy_credcache(auth); in gss_destroy()
1370 gss_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in gss_lookup_cred() argument
1372 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in gss_lookup_cred()
1376 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument
1378 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth); in gss_create_cred()
1385 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred()
1401 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred) in gss_cred_init() argument
1403 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth); in gss_cred_init()
1608 struct rpc_auth *auth = oldcred->cr_auth; in gss_renew_cred() local
1615 new = gss_lookup_cred(auth, &acred, RPCAUTH_LOOKUP_NEW); in gss_renew_cred()
1945 struct rpc_auth *auth = cred->cr_auth; in gss_update_rslack() local
1947 if (test_and_clear_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags)) { in gss_update_rslack()
1948 auth->au_ralign = auth->au_verfsize + before; in gss_update_rslack()
1949 auth->au_rslack = auth->au_verfsize + after; in gss_update_rslack()
1950 trace_rpcgss_update_slack(task, auth); in gss_update_rslack()