aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-23 19:55:31 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:35 -0400
commit5fe4755e2526a2aa82b7ed8daeb3aed74a236925 (patch)
treeaceb993080fc6aac5861f04d8a8494becb4046eb /include/linux/sunrpc
parentf1c0a8615090359d57e096157feb9f900cbb233c (diff)
SUNRPC: Clean up rpc credential initialisation
Add a helper rpc_cred_init() Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/auth.h1
-rw-r--r--include/linux/sunrpc/auth_gss.h5
2 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h
index e606c2804685..d5bfc67461fc 100644
--- a/include/linux/sunrpc/auth.h
+++ b/include/linux/sunrpc/auth.h
@@ -127,6 +127,7 @@ int rpcauth_unregister(const struct rpc_authops *);
127struct rpc_auth * rpcauth_create(rpc_authflavor_t, struct rpc_clnt *); 127struct rpc_auth * rpcauth_create(rpc_authflavor_t, struct rpc_clnt *);
128void rpcauth_release(struct rpc_auth *); 128void rpcauth_release(struct rpc_auth *);
129struct rpc_cred * rpcauth_lookup_credcache(struct rpc_auth *, struct auth_cred *, int); 129struct rpc_cred * rpcauth_lookup_credcache(struct rpc_auth *, struct auth_cred *, int);
130void rpcauth_init_cred(struct rpc_cred *, const struct auth_cred *, struct rpc_auth *, const struct rpc_credops *);
130struct rpc_cred * rpcauth_lookupcred(struct rpc_auth *, int); 131struct rpc_cred * rpcauth_lookupcred(struct rpc_auth *, int);
131struct rpc_cred * rpcauth_bindcred(struct rpc_task *); 132struct rpc_cred * rpcauth_bindcred(struct rpc_task *);
132void rpcauth_holdcred(struct rpc_task *); 133void rpcauth_holdcred(struct rpc_task *);
diff --git a/include/linux/sunrpc/auth_gss.h b/include/linux/sunrpc/auth_gss.h
index 2db2fbf34947..0bd1d06777b9 100644
--- a/include/linux/sunrpc/auth_gss.h
+++ b/include/linux/sunrpc/auth_gss.h
@@ -85,11 +85,6 @@ struct gss_cred {
85 struct gss_upcall_msg *gc_upcall; 85 struct gss_upcall_msg *gc_upcall;
86}; 86};
87 87
88#define gc_uid gc_base.cr_uid
89#define gc_count gc_base.cr_count
90#define gc_flags gc_base.cr_flags
91#define gc_expire gc_base.cr_expire
92
93#endif /* __KERNEL__ */ 88#endif /* __KERNEL__ */
94#endif /* _LINUX_SUNRPC_AUTH_GSS_H */ 89#endif /* _LINUX_SUNRPC_AUTH_GSS_H */
95 90