Lines Matching refs:auth

265 	struct gss_auth *auth;  member
301 struct net *net = gss_msg->auth->net; in gss_release_msg()
309 gss_put_auth(gss_msg->auth); in gss_release_msg()
315 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
321 if (pos->auth->service != auth->service) in __gss_find_upcall()
340 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
436 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
514 gss_msg->auth->target_name, in gss_v1_upcall()
543 gss_msg->auth = gss_auth; in gss_alloc_msg()
774 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
1024 struct rpc_auth * auth; in gss_create_new() local
1050 auth = &gss_auth->rpc_auth; in gss_create_new()
1051 auth->au_cslack = GSS_CRED_SLACK >> 2; in gss_create_new()
1053 auth->au_rslack = GSS_KRB5_MAX_SLACK_NEEDED >> 2; in gss_create_new()
1054 auth->au_verfsize = GSS_VERF_SLACK >> 2; in gss_create_new()
1055 auth->au_ralign = GSS_VERF_SLACK >> 2; in gss_create_new()
1056 __set_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags); in gss_create_new()
1057 auth->au_ops = &authgss_ops; in gss_create_new()
1058 auth->au_flavor = flavor; in gss_create_new()
1060 __set_bit(RPCAUTH_AUTH_DATATOUCH, &auth->au_flags); in gss_create_new()
1061 refcount_set(&auth->au_count, 1); in gss_create_new()
1064 err = rpcauth_init_credcache(auth); in gss_create_new()
1092 rpcauth_destroy_credcache(auth); in gss_create_new()
1134 gss_destroy(struct rpc_auth *auth) in gss_destroy() argument
1136 struct gss_auth *gss_auth = container_of(auth, in gss_destroy()
1149 rpcauth_destroy_credcache(auth); in gss_destroy()
1366 static struct rpc_cred *gss_lookup_cred(struct rpc_auth *auth, in gss_lookup_cred() argument
1369 return rpcauth_lookup_credcache(auth, acred, flags, in gss_lookup_cred()
1374 gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in gss_create_cred() argument
1376 struct gss_auth *gss_auth = container_of(auth, struct gss_auth, rpc_auth); in gss_create_cred()
1383 rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops); in gss_create_cred()
1399 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred) in gss_cred_init() argument
1401 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()
1958 struct rpc_auth *auth = cred->cr_auth; in gss_update_rslack() local
1960 if (test_and_clear_bit(RPCAUTH_AUTH_UPDATE_SLACK, &auth->au_flags)) { in gss_update_rslack()
1961 auth->au_ralign = auth->au_verfsize + before; in gss_update_rslack()
1962 auth->au_rslack = auth->au_verfsize + after; in gss_update_rslack()
1963 trace_rpcgss_update_slack(task, auth); in gss_update_rslack()