diff options
author | Sage Weil <sage@inktank.com> | 2013-03-25 10:26:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-20 11:58:47 -0700 |
commit | aa80dd9dbe86743ae6e52c836f6ab1472c469927 (patch) | |
tree | 1b5a77428bc53dd4cf0988c6328bbea34adaee1f /include | |
parent | 29c65a277a64645af853e8c9a9b3dda0ddc421e0 (diff) | |
download | linux-3.10-aa80dd9dbe86743ae6e52c836f6ab1472c469927.tar.gz linux-3.10-aa80dd9dbe86743ae6e52c836f6ab1472c469927.tar.bz2 linux-3.10-aa80dd9dbe86743ae6e52c836f6ab1472c469927.zip |
libceph: wrap auth ops in wrapper functions
commit 27859f9773e4a0b2042435b13400ee2c891a61f4 upstream.
Use wrapper functions that check whether the auth op exists so that callers
do not need a bunch of conditional checks. Simplifies the external
interface.
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ceph/auth.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/ceph/auth.h b/include/linux/ceph/auth.h index 73e973e7002..c9c3b3abe4a 100644 --- a/include/linux/ceph/auth.h +++ b/include/linux/ceph/auth.h @@ -97,5 +97,18 @@ extern int ceph_build_auth(struct ceph_auth_client *ac, void *msg_buf, size_t msg_len); extern int ceph_auth_is_authenticated(struct ceph_auth_client *ac); +extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac, + int peer_type, + struct ceph_auth_handshake *auth); +extern void ceph_auth_destroy_authorizer(struct ceph_auth_client *ac, + struct ceph_authorizer *a); +extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac, + int peer_type, + struct ceph_auth_handshake *a); +extern int ceph_auth_verify_authorizer_reply(struct ceph_auth_client *ac, + struct ceph_authorizer *a, + size_t len); +extern void ceph_auth_invalidate_authorizer(struct ceph_auth_client *ac, + int peer_type); #endif |