Lines Matching defs:auth

2  * linux/net/sunrpc/auth.c
147 request_module("rpc-auth-%u", flavor);
185 request_module("rpc-auth-%u", flavor);
259 struct rpc_auth *auth;
263 auth = ERR_PTR(-EINVAL);
268 request_module("rpc-auth-%u", flavor);
276 auth = ops->create(args, clnt);
278 if (IS_ERR(auth))
279 return auth;
282 clnt->cl_auth = auth;
285 return auth;
290 rpcauth_release(struct rpc_auth *auth)
292 if (!atomic_dec_and_test(&auth->au_count))
294 auth->au_ops->destroy(auth);
326 rpcauth_init_credcache(struct rpc_auth *auth)
340 auth->au_credcache = new;
353 rpcauth_key_timeout_notify(struct rpc_auth *auth, struct rpc_cred *cred)
357 return cred->cr_auth->au_ops->key_timeout(auth, cred);
431 rpcauth_destroy_credcache(struct rpc_auth *auth)
433 struct rpc_cred_cache *cache = auth->au_credcache;
436 auth->au_credcache = NULL;
545 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
549 struct rpc_cred_cache *cache = auth->au_credcache;
583 new = auth->au_ops->crcreate(auth, acred, flags);
608 int res = cred->cr_ops->cr_init(auth, cred);
621 rpcauth_lookupcred(struct rpc_auth *auth, int flags)
628 auth->au_ops->au_name);
634 ret = auth->au_ops->lookup_cred(auth, &acred, flags);
641 struct rpc_auth *auth, const struct rpc_credops *ops)
646 cred->cr_auth = auth;
668 struct rpc_auth *auth = task->tk_client->cl_auth;
676 return auth->au_ops->lookup_cred(auth, &acred, lookupflags);
682 struct rpc_auth *auth = task->tk_client->cl_auth;
685 task->tk_pid, auth->au_ops->au_name);
686 return rpcauth_lookupcred(auth, lookupflags);