~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to include/linux/ceph/auth.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
         */
53
53
        int (*create_authorizer)(struct ceph_auth_client *ac, int peer_type,
54
54
                                 struct ceph_auth_handshake *auth);
 
55
        /* ensure that an existing authorizer is up to date */
 
56
        int (*update_authorizer)(struct ceph_auth_client *ac, int peer_type,
 
57
                                 struct ceph_auth_handshake *auth);
55
58
        int (*verify_authorizer_reply)(struct ceph_auth_client *ac,
56
59
                                       struct ceph_authorizer *a, size_t len);
57
60
        void (*destroy_authorizer)(struct ceph_auth_client *ac,
75
78
        u64 global_id;          /* our unique id in system */
76
79
        const struct ceph_crypto_key *key;     /* our secret key */
77
80
        unsigned want_keys;     /* which services we want */
 
81
 
 
82
        struct mutex mutex;
78
83
};
79
84
 
80
85
extern struct ceph_auth_client *ceph_auth_init(const char *name,
94
99
                    void *msg_buf, size_t msg_len);
95
100
 
96
101
extern int ceph_auth_is_authenticated(struct ceph_auth_client *ac);
 
102
extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac,
 
103
                                       int peer_type,
 
104
                                       struct ceph_auth_handshake *auth);
 
105
extern void ceph_auth_destroy_authorizer(struct ceph_auth_client *ac,
 
106
                                         struct ceph_authorizer *a);
 
107
extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac,
 
108
                                       int peer_type,
 
109
                                       struct ceph_auth_handshake *a);
 
110
extern int ceph_auth_verify_authorizer_reply(struct ceph_auth_client *ac,
 
111
                                             struct ceph_authorizer *a,
 
112
                                             size_t len);
 
113
extern void ceph_auth_invalidate_authorizer(struct ceph_auth_client *ac,
 
114
                                            int peer_type);
97
115
 
98
116
#endif