12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #ifndef __FS_CEPH_AUTH_X_PROTOCOL
- #define __FS_CEPH_AUTH_X_PROTOCOL
- #define CEPHX_GET_AUTH_SESSION_KEY 0x0100
- #define CEPHX_GET_PRINCIPAL_SESSION_KEY 0x0200
- #define CEPHX_GET_ROTATING_KEY 0x0400
- struct ceph_x_ticket_blob {
- __u8 struct_v;
- __le64 secret_id;
- __le32 blob_len;
- char blob[];
- } __attribute__ ((packed));
- struct ceph_x_request_header {
- __le16 op;
- } __attribute__ ((packed));
- struct ceph_x_reply_header {
- __le16 op;
- __le32 result;
- } __attribute__ ((packed));
- struct ceph_x_server_challenge {
- __u8 struct_v;
- __le64 server_challenge;
- } __attribute__ ((packed));
- struct ceph_x_authenticate {
- __u8 struct_v;
- __le64 client_challenge;
- __le64 key;
-
- } __attribute__ ((packed));
- struct ceph_x_service_ticket_request {
- __u8 struct_v;
- __le32 keys;
- } __attribute__ ((packed));
- struct ceph_x_challenge_blob {
- __le64 server_challenge;
- __le64 client_challenge;
- } __attribute__ ((packed));
- struct ceph_x_authorize_a {
- __u8 struct_v;
- __le64 global_id;
- __le32 service_id;
- struct ceph_x_ticket_blob ticket_blob;
- } __attribute__ ((packed));
- struct ceph_x_authorize_b {
- __u8 struct_v;
- __le64 nonce;
- __u8 have_challenge;
- __le64 server_challenge_plus_one;
- } __attribute__ ((packed));
- struct ceph_x_authorize_challenge {
- __u8 struct_v;
- __le64 server_challenge;
- } __attribute__ ((packed));
- struct ceph_x_authorize_reply {
- __u8 struct_v;
- __le64 nonce_plus_one;
- } __attribute__ ((packed));
- #define CEPHX_ENC_MAGIC 0xff009cad8826aa55ull
- struct ceph_x_encrypt_header {
- __u8 struct_v;
- __le64 magic;
- } __attribute__ ((packed));
- #endif
|