diff options
| author | Sage Weil <sage@inktank.com> | 2013-03-25 13:26:14 -0400 |
|---|---|---|
| committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:17:14 -0400 |
| commit | 27859f9773e4a0b2042435b13400ee2c891a61f4 (patch) | |
| tree | 28b8e7133959c88f4de89cc98eee2016874b1ca6 /include/linux/ceph/auth.h | |
| parent | 0bed9b5c523d577378b6f83eab5835fe30c27208 (diff) | |
libceph: wrap auth ops in wrapper functions
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>
Diffstat (limited to 'include/linux/ceph/auth.h')
| -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 73e973e70026..c9c3b3abe4a3 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, | |||
| 97 | void *msg_buf, size_t msg_len); | 97 | void *msg_buf, size_t msg_len); |
| 98 | 98 | ||
| 99 | extern int ceph_auth_is_authenticated(struct ceph_auth_client *ac); | 99 | extern int ceph_auth_is_authenticated(struct ceph_auth_client *ac); |
| 100 | extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac, | ||
| 101 | int peer_type, | ||
| 102 | struct ceph_auth_handshake *auth); | ||
| 103 | extern void ceph_auth_destroy_authorizer(struct ceph_auth_client *ac, | ||
| 104 | struct ceph_authorizer *a); | ||
| 105 | extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac, | ||
| 106 | int peer_type, | ||
| 107 | struct ceph_auth_handshake *a); | ||
| 108 | extern int ceph_auth_verify_authorizer_reply(struct ceph_auth_client *ac, | ||
| 109 | struct ceph_authorizer *a, | ||
| 110 | size_t len); | ||
| 111 | extern void ceph_auth_invalidate_authorizer(struct ceph_auth_client *ac, | ||
| 112 | int peer_type); | ||
| 100 | 113 | ||
| 101 | #endif | 114 | #endif |
