diff options
author | Sage Weil <sage@newdream.net> | 2009-11-18 19:19:57 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-18 19:19:57 -0500 |
commit | 4e7a5dcd1bbab6560fbc8ada29a840e7a20ed7bc (patch) | |
tree | a77e9b4563022340361ca673ef2e1beebb538e2f /fs/ceph/osd_client.h | |
parent | 5f44f142601bf94c448e2d463f0f18fd159da164 (diff) |
ceph: negotiate authentication protocol; implement AUTH_NONE protocol
When we open a monitor session, we send an initial AUTH message listing
the auth protocols we support, our entity name, and (possibly) a previously
assigned global_id. The monitor chooses a protocol and responds with an
initial message.
Initially implement AUTH_NONE, a dummy protocol that provides no security,
but works within the new framework. It generates 'authorizers' that are
used when connecting to (mds, osd) services that simply state our entity
name and global_id.
This is a wire protocol change.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/osd_client.h')
-rw-r--r-- | fs/ceph/osd_client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/osd_client.h b/fs/ceph/osd_client.h index 766c8dc80aff..3d4ae6595aaa 100644 --- a/fs/ceph/osd_client.h +++ b/fs/ceph/osd_client.h | |||
@@ -13,6 +13,7 @@ struct ceph_msg; | |||
13 | struct ceph_snap_context; | 13 | struct ceph_snap_context; |
14 | struct ceph_osd_request; | 14 | struct ceph_osd_request; |
15 | struct ceph_osd_client; | 15 | struct ceph_osd_client; |
16 | struct ceph_authorizer; | ||
16 | 17 | ||
17 | /* | 18 | /* |
18 | * completion callback for async writepages | 19 | * completion callback for async writepages |
@@ -29,6 +30,9 @@ struct ceph_osd { | |||
29 | struct rb_node o_node; | 30 | struct rb_node o_node; |
30 | struct ceph_connection o_con; | 31 | struct ceph_connection o_con; |
31 | struct list_head o_requests; | 32 | struct list_head o_requests; |
33 | struct ceph_authorizer *o_authorizer; | ||
34 | void *o_authorizer_buf, *o_authorizer_reply_buf; | ||
35 | size_t o_authorizer_buf_len, o_authorizer_reply_buf_len; | ||
32 | }; | 36 | }; |
33 | 37 | ||
34 | /* an in-flight request */ | 38 | /* an in-flight request */ |