drm/i915: Fix oops on HWS unload
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / fs / ceph / auth_x.h
blobff6f8180e6816a352ca5184d8db1b47e110b64f4
1 #ifndef _FS_CEPH_AUTH_X_H
2 #define _FS_CEPH_AUTH_X_H
4 #include <linux/rbtree.h>
6 #include "crypto.h"
7 #include "auth.h"
8 #include "auth_x_protocol.h"
11 * Handle ticket for a single service.
13 struct ceph_x_ticket_handler {
14 struct rb_node node;
15 unsigned service;
17 struct ceph_crypto_key session_key;
18 struct ceph_timespec validity;
20 u64 secret_id;
21 struct ceph_buffer *ticket_blob;
23 unsigned long renew_after, expires;
27 struct ceph_x_authorizer {
28 struct ceph_buffer *buf;
29 unsigned service;
30 u64 nonce;
31 char reply_buf[128]; /* big enough for encrypted blob */
34 struct ceph_x_info {
35 struct ceph_crypto_key secret;
37 bool starting;
38 u64 server_challenge;
40 unsigned have_keys;
41 struct rb_root ticket_handlers;
43 struct ceph_x_authorizer auth_authorizer;
46 extern int ceph_x_init(struct ceph_auth_client *ac);
48 #endif