diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2014-06-21 20:52:16 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-12 18:41:20 -0400 |
commit | a0337d1ddb5a4bd609e3ff0955551cb240340340 (patch) | |
tree | 70aaa98dc13ac50b41f4741b620b8954508f9728 /include/linux/sunrpc | |
parent | 2004c726b9d9a9670b7f837190be9c8dfa7a0e9d (diff) |
sunrpc: add a new "stringify_acceptor" rpc_credop
...and add an new rpc_auth function to call it when it exists. This
is only applicable for AUTH_GSS mechanisms, so we only specify this
for those sorts of credentials.
Signed-off-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/auth.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index 790be1472792..c683b9a06913 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h | |||
@@ -140,6 +140,7 @@ struct rpc_credops { | |||
140 | void *, __be32 *, void *); | 140 | void *, __be32 *, void *); |
141 | int (*crkey_timeout)(struct rpc_cred *); | 141 | int (*crkey_timeout)(struct rpc_cred *); |
142 | bool (*crkey_to_expire)(struct rpc_cred *); | 142 | bool (*crkey_to_expire)(struct rpc_cred *); |
143 | char * (*crstringify_acceptor)(struct rpc_cred *); | ||
143 | }; | 144 | }; |
144 | 145 | ||
145 | extern const struct rpc_authops authunix_ops; | 146 | extern const struct rpc_authops authunix_ops; |
@@ -182,6 +183,7 @@ void rpcauth_clear_credcache(struct rpc_cred_cache *); | |||
182 | int rpcauth_key_timeout_notify(struct rpc_auth *, | 183 | int rpcauth_key_timeout_notify(struct rpc_auth *, |
183 | struct rpc_cred *); | 184 | struct rpc_cred *); |
184 | bool rpcauth_cred_key_to_expire(struct rpc_cred *); | 185 | bool rpcauth_cred_key_to_expire(struct rpc_cred *); |
186 | char * rpcauth_stringify_acceptor(struct rpc_cred *); | ||
185 | 187 | ||
186 | static inline | 188 | static inline |
187 | struct rpc_cred * get_rpccred(struct rpc_cred *cred) | 189 | struct rpc_cred * get_rpccred(struct rpc_cred *cred) |