1 #ifndef __FS_CEPH_AUTH_X_PROTOCOL
2 #define __FS_CEPH_AUTH_X_PROTOCOL
4 #define CEPHX_GET_AUTH_SESSION_KEY 0x0100
5 #define CEPHX_GET_PRINCIPAL_SESSION_KEY 0x0200
6 #define CEPHX_GET_ROTATING_KEY 0x0400
9 struct ceph_x_ticket_blob
{
14 } __attribute__ ((packed
));
17 /* common request/reply headers */
18 struct ceph_x_request_header
{
20 } __attribute__ ((packed
));
22 struct ceph_x_reply_header
{
25 } __attribute__ ((packed
));
28 /* authenticate handshake */
30 /* initial hello (no reply header) */
31 struct ceph_x_server_challenge
{
33 __le64 server_challenge
;
34 } __attribute__ ((packed
));
36 struct ceph_x_authenticate
{
38 __le64 client_challenge
;
41 } __attribute__ ((packed
));
43 struct ceph_x_service_ticket_request
{
46 } __attribute__ ((packed
));
48 struct ceph_x_challenge_blob
{
49 __le64 server_challenge
;
50 __le64 client_challenge
;
51 } __attribute__ ((packed
));
55 /* authorize handshake */
58 * The authorizer consists of two pieces:
59 * a - service id, ticket blob
60 * b - encrypted with session key
62 struct ceph_x_authorize_a
{
66 struct ceph_x_ticket_blob ticket_blob
;
67 } __attribute__ ((packed
));
69 struct ceph_x_authorize_b
{
72 } __attribute__ ((packed
));
74 struct ceph_x_authorize_reply
{
76 __le64 nonce_plus_one
;
77 } __attribute__ ((packed
));
83 #define CEPHX_ENC_MAGIC 0xff009cad8826aa55ull
85 struct ceph_x_encrypt_header
{
88 } __attribute__ ((packed
));