• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/net/sunrpc/

Lines Matching refs:auth

2  * linux/net/sunrpc/auth.c
63 struct rpc_auth *auth;
67 auth = ERR_PTR(-EINVAL);
73 request_module("rpc-auth-%u", flavor);
77 auth = ops->create(clnt, pseudoflavor);
78 if (IS_ERR(auth))
79 return auth;
82 clnt->cl_auth = auth;
85 return auth;
89 rpcauth_destroy(struct rpc_auth *auth)
91 if (!atomic_dec_and_test(&auth->au_count))
93 auth->au_ops->destroy(auth);
102 rpcauth_init_credcache(struct rpc_auth *auth, unsigned long expire)
114 auth->au_credcache = new;
138 rpcauth_free_credcache(struct rpc_auth *auth)
140 struct rpc_cred_cache *cache = auth->au_credcache;
159 rpcauth_prune_expired(struct rpc_auth *auth, struct rpc_cred *cred, struct hlist_head *free)
163 if (time_after(jiffies, cred->cr_expire + auth->au_credcache->expire))
175 rpcauth_gc_credcache(struct rpc_auth *auth, struct hlist_head *free)
177 struct rpc_cred_cache *cache = auth->au_credcache;
182 dprintk("RPC: gc'ing RPC credentials for auth %p\n", auth);
186 rpcauth_prune_expired(auth, cred, free);
196 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,
199 struct rpc_cred_cache *cache = auth->au_credcache;
211 rpcauth_gc_credcache(auth, &free);
220 rpcauth_prune_expired(auth, entry, &free);
237 new = auth->au_ops->crcreate(auth, acred, flags);
248 int res = cred->cr_ops->cr_init(auth, cred);
259 rpcauth_lookupcred(struct rpc_auth *auth, int flags)
269 auth->au_ops->au_name);
271 ret = auth->au_ops->lookup_cred(auth, &acred, flags);
279 struct rpc_auth *auth = task->tk_auth;
293 ret = auth->au_ops->lookup_cred(auth, &acred, flags);