• Home
  • Raw
  • Download

Lines Matching refs:auth

257 	struct rpc_auth		*auth;  in rpcauth_create()  local
261 auth = ERR_PTR(-EINVAL); in rpcauth_create()
274 auth = ops->create(args, clnt); in rpcauth_create()
276 if (IS_ERR(auth)) in rpcauth_create()
277 return auth; in rpcauth_create()
280 clnt->cl_auth = auth; in rpcauth_create()
283 return auth; in rpcauth_create()
288 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
290 if (!atomic_dec_and_test(&auth->au_count)) in rpcauth_release()
292 auth->au_ops->destroy(auth); in rpcauth_release()
324 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
338 auth->au_credcache = new; in rpcauth_init_credcache()
351 rpcauth_key_timeout_notify(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_key_timeout_notify() argument
355 return cred->cr_auth->au_ops->key_timeout(auth, cred); in rpcauth_key_timeout_notify()
360 rpcauth_cred_key_to_expire(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_cred_key_to_expire() argument
362 if (auth->au_flags & RPCAUTH_AUTH_NO_CRKEY_TIMEOUT) in rpcauth_cred_key_to_expire()
431 rpcauth_destroy_credcache(struct rpc_auth *auth) in rpcauth_destroy_credcache() argument
433 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_destroy_credcache()
436 auth->au_credcache = NULL; in rpcauth_destroy_credcache()
545 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, in rpcauth_lookup_credcache() argument
549 struct rpc_cred_cache *cache = auth->au_credcache; in rpcauth_lookup_credcache()
554 nr = auth->au_ops->hash_cred(acred, cache->hashbits); in rpcauth_lookup_credcache()
583 new = auth->au_ops->crcreate(auth, acred, flags, gfp); in rpcauth_lookup_credcache()
608 int res = cred->cr_ops->cr_init(auth, cred); in rpcauth_lookup_credcache()
621 rpcauth_lookupcred(struct rpc_auth *auth, int flags) in rpcauth_lookupcred() argument
628 auth->au_ops->au_name); in rpcauth_lookupcred()
634 ret = auth->au_ops->lookup_cred(auth, &acred, flags); in rpcauth_lookupcred()
641 struct rpc_auth *auth, const struct rpc_credops *ops) in rpcauth_init_cred() argument
646 cred->cr_auth = auth; in rpcauth_init_cred()
668 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred() local
676 return auth->au_ops->lookup_cred(auth, &acred, lookupflags); in rpcauth_bind_root_cred()
682 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred() local
685 task->tk_pid, auth->au_ops->au_name); in rpcauth_bind_new_cred()
686 return rpcauth_lookupcred(auth, lookupflags); in rpcauth_bind_new_cred()