diff options
author | Alex Elder <elder@inktank.com> | 2012-05-17 00:16:38 +0400 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-05-17 17:18:12 +0400 |
commit | 6c4a19158b96ea1fb8acbe0c1d5493d9dcd2f147 (patch) | |
tree | 5fe6418eb57bf4e84f1eda9606a4a045ff08dcba /include/linux/ceph/auth.h | |
parent | ed96af646011412c2bf1ffe860db170db355fae5 (diff) | |
download | linux-6c4a19158b96ea1fb8acbe0c1d5493d9dcd2f147.tar.xz |
ceph: define ceph_auth_handshake type
The definitions for the ceph_mds_session and ceph_osd both contain
five fields related only to "authorizers." Encapsulate those fields
into their own struct type, allowing for better isolation in some
upcoming patches.
Fix the #includes in "linux/ceph/osd_client.h" to lay out their more
complete canonical path.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/ceph/auth.h')
-rw-r--r-- | include/linux/ceph/auth.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ceph/auth.h b/include/linux/ceph/auth.h index aa13392a7efb..5b774d141e09 100644 --- a/include/linux/ceph/auth.h +++ b/include/linux/ceph/auth.h @@ -14,6 +14,14 @@ struct ceph_auth_client; struct ceph_authorizer; +struct ceph_auth_handshake { + struct ceph_authorizer *authorizer; + void *authorizer_buf; + size_t authorizer_buf_len; + void *authorizer_reply_buf; + size_t authorizer_reply_buf_len; +}; + struct ceph_auth_client_ops { const char *name; |