Lines Matching refs:auth

3  * linux/net/sunrpc/auth.c
148 request_module("rpc-auth-%u", flavor);
224 struct rpc_auth *auth = ERR_PTR(-EINVAL);
232 auth = ops->create(args, clnt);
235 if (IS_ERR(auth))
236 return auth;
239 clnt->cl_auth = auth;
242 return auth;
247 rpcauth_release(struct rpc_auth *auth)
249 if (!refcount_dec_and_test(&auth->au_count))
251 auth->au_ops->destroy(auth);
288 rpcauth_init_credcache(struct rpc_auth *auth)
302 auth->au_credcache = new;
407 rpcauth_destroy_credcache(struct rpc_auth *auth)
409 struct rpc_cred_cache *cache = auth->au_credcache;
412 auth->au_credcache = NULL;
514 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
518 struct rpc_cred_cache *cache = auth->au_credcache;
523 nr = auth->au_ops->hash_cred(acred, cache->hashbits);
538 new = auth->au_ops->crcreate(auth, acred, flags, gfp);
565 int res = cred->cr_ops->cr_init(auth, cred);
578 rpcauth_lookupcred(struct rpc_auth *auth, int flags)
586 ret = auth->au_ops->lookup_cred(auth, &acred, flags);
593 struct rpc_auth *auth, const struct rpc_credops *ops)
598 cred->cr_auth = auth;
609 struct rpc_auth *auth = task->tk_client->cl_auth;
617 ret = auth->au_ops->lookup_cred(auth, &acred, lookupflags);
625 struct rpc_auth *auth = task->tk_client->cl_auth;
635 return auth->au_ops->lookup_cred(auth, &acred, lookupflags);
641 struct rpc_auth *auth = task->tk_client->cl_auth;
643 return rpcauth_lookupcred(auth, lookupflags);
652 struct rpc_auth *auth = task->tk_client->cl_auth;
663 new = auth->au_ops->lookup_cred(auth, &acred, lookupflags);
773 * %-EPROTONOSUPPORT: Server does not support the requested auth type.