Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
auth_x_protocol.h
Go to the documentation of this file.
1 #ifndef __FS_CEPH_AUTH_X_PROTOCOL
2 #define __FS_CEPH_AUTH_X_PROTOCOL
3 
4 #define CEPHX_GET_AUTH_SESSION_KEY 0x0100
5 #define CEPHX_GET_PRINCIPAL_SESSION_KEY 0x0200
6 #define CEPHX_GET_ROTATING_KEY 0x0400
7 
8 /* common bits */
13  char blob[];
14 } __attribute__ ((packed));
15 
16 
17 /* common request/reply headers */
20 } __attribute__ ((packed));
21 
25 } __attribute__ ((packed));
26 
27 
28 /* authenticate handshake */
29 
30 /* initial hello (no reply header) */
34 } __attribute__ ((packed));
35 
40  /* ticket blob */
41 } __attribute__ ((packed));
42 
46 } __attribute__ ((packed));
47 
51 } __attribute__ ((packed));
52 
53 
54 
55 /* authorize handshake */
56 
57 /*
58  * The authorizer consists of two pieces:
59  * a - service id, ticket blob
60  * b - encrypted with session key
61  */
67 } __attribute__ ((packed));
68 
72 } __attribute__ ((packed));
73 
77 } __attribute__ ((packed));
78 
79 
80 /*
81  * encyption bundle
82  */
83 #define CEPHX_ENC_MAGIC 0xff009cad8826aa55ull
84 
88 } __attribute__ ((packed));
89 
90 #endif