Lines Matching refs:auth
3 * linux/net/sunrpc/auth.c
151 request_module("rpc-auth-%u", flavor);
227 struct rpc_auth *auth = ERR_PTR(-EINVAL);
235 auth = ops->create(args, clnt);
238 if (IS_ERR(auth))
239 return auth;
242 clnt->cl_auth = auth;
245 return auth;
250 rpcauth_release(struct rpc_auth *auth)
252 if (!refcount_dec_and_test(&auth->au_count))
254 auth->au_ops->destroy(auth);
291 rpcauth_init_credcache(struct rpc_auth *auth)
305 auth->au_credcache = new;
410 rpcauth_destroy_credcache(struct rpc_auth *auth)
412 struct rpc_cred_cache *cache = auth->au_credcache;
415 auth->au_credcache = NULL;
517 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
521 struct rpc_cred_cache *cache = auth->au_credcache;
526 nr = auth->au_ops->hash_cred(acred, cache->hashbits);
541 new = auth->au_ops->crcreate(auth, acred, flags, gfp);
568 int res = cred->cr_ops->cr_init(auth, cred);
581 rpcauth_lookupcred(struct rpc_auth *auth, int flags)
589 ret = auth->au_ops->lookup_cred(auth, &acred, flags);
596 struct rpc_auth *auth, const struct rpc_credops *ops)
601 cred->cr_auth = auth;
612 struct rpc_auth *auth = task->tk_client->cl_auth;
618 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags);
626 struct rpc_auth *auth = task->tk_client->cl_auth;
634 return auth->au_ops->lookup_cred(auth, &acred, lookupflags);
640 struct rpc_auth *auth = task->tk_client->cl_auth;
642 return rpcauth_lookupcred(auth, lookupflags);
651 struct rpc_auth *auth = task->tk_client->cl_auth;
662 new = auth->au_ops->lookup_cred(auth, &acred, lookupflags);