aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/messenger.h
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-05-16 16:16:39 -0400
committerAlex Elder <elder@dreamhost.com>2012-05-17 09:18:13 -0400
commita3530df33eb91d787d08c7383a0a9982690e42d0 (patch)
tree3022fc82ea661654bfca48fae32a7a1584dba1e8 /include/linux/ceph/messenger.h
parenta255651d4cad89f1a606edd36135af892ada4f20 (diff)
ceph: have get_authorizer methods return pointers
Have the get_authorizer auth_client method return a ceph_auth pointer rather than an integer, pointer-encoding any returned error value. This is to pave the way for making use of the returned value in an upcoming patch. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/ceph/messenger.h')
-rw-r--r--include/linux/ceph/messenger.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index 3bff047f6b0f..b10b55f8f301 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -25,9 +25,11 @@ struct ceph_connection_operations {
25 void (*dispatch) (struct ceph_connection *con, struct ceph_msg *m); 25 void (*dispatch) (struct ceph_connection *con, struct ceph_msg *m);
26 26
27 /* authorize an outgoing connection */ 27 /* authorize an outgoing connection */
28 int (*get_authorizer) (struct ceph_connection *con, 28 struct ceph_auth_handshake *(*get_authorizer) (
29 void **buf, int *len, int *proto, 29 struct ceph_connection *con,
30 void **reply_buf, int *reply_len, int force_new); 30 void **buf, int *len, int *proto,
31 void **reply_buf, int *reply_len,
32 int force_new);
31 int (*verify_authorizer_reply) (struct ceph_connection *con, int len); 33 int (*verify_authorizer_reply) (struct ceph_connection *con, int len);
32 int (*invalidate_authorizer)(struct ceph_connection *con); 34 int (*invalidate_authorizer)(struct ceph_connection *con);
33 35