diff options
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/auth_none.h | 2 | ||||
-rw-r--r-- | net/ceph/auth_x.h | 2 | ||||
-rw-r--r-- | net/ceph/crypto.h | 48 |
3 files changed, 25 insertions, 27 deletions
diff --git a/net/ceph/auth_none.h b/net/ceph/auth_none.h index ed7d088b1bc9..059a3ce4b53f 100644 --- a/net/ceph/auth_none.h +++ b/net/ceph/auth_none.h | |||
@@ -23,7 +23,7 @@ struct ceph_auth_none_info { | |||
23 | struct ceph_none_authorizer au; /* we only need one; it's static */ | 23 | struct ceph_none_authorizer au; /* we only need one; it's static */ |
24 | }; | 24 | }; |
25 | 25 | ||
26 | extern int ceph_auth_none_init(struct ceph_auth_client *ac); | 26 | int ceph_auth_none_init(struct ceph_auth_client *ac); |
27 | 27 | ||
28 | #endif | 28 | #endif |
29 | 29 | ||
diff --git a/net/ceph/auth_x.h b/net/ceph/auth_x.h index c5a058da7ac8..65ee72082d99 100644 --- a/net/ceph/auth_x.h +++ b/net/ceph/auth_x.h | |||
@@ -45,7 +45,7 @@ struct ceph_x_info { | |||
45 | struct ceph_x_authorizer auth_authorizer; | 45 | struct ceph_x_authorizer auth_authorizer; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | extern int ceph_x_init(struct ceph_auth_client *ac); | 48 | int ceph_x_init(struct ceph_auth_client *ac); |
49 | 49 | ||
50 | #endif | 50 | #endif |
51 | 51 | ||
diff --git a/net/ceph/crypto.h b/net/ceph/crypto.h index 3572dc518bc9..d1498224c49d 100644 --- a/net/ceph/crypto.h +++ b/net/ceph/crypto.h | |||
@@ -20,34 +20,32 @@ static inline void ceph_crypto_key_destroy(struct ceph_crypto_key *key) | |||
20 | kfree(key->key); | 20 | kfree(key->key); |
21 | } | 21 | } |
22 | 22 | ||
23 | extern int ceph_crypto_key_clone(struct ceph_crypto_key *dst, | 23 | int ceph_crypto_key_clone(struct ceph_crypto_key *dst, |
24 | const struct ceph_crypto_key *src); | 24 | const struct ceph_crypto_key *src); |
25 | extern int ceph_crypto_key_encode(struct ceph_crypto_key *key, | 25 | int ceph_crypto_key_encode(struct ceph_crypto_key *key, void **p, void *end); |
26 | void **p, void *end); | 26 | int ceph_crypto_key_decode(struct ceph_crypto_key *key, void **p, void *end); |
27 | extern int ceph_crypto_key_decode(struct ceph_crypto_key *key, | 27 | int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *in); |
28 | void **p, void *end); | ||
29 | extern int ceph_crypto_key_unarmor(struct ceph_crypto_key *key, const char *in); | ||
30 | 28 | ||
31 | /* crypto.c */ | 29 | /* crypto.c */ |
32 | extern int ceph_decrypt(struct ceph_crypto_key *secret, | 30 | int ceph_decrypt(struct ceph_crypto_key *secret, |
33 | void *dst, size_t *dst_len, | 31 | void *dst, size_t *dst_len, |
34 | const void *src, size_t src_len); | 32 | const void *src, size_t src_len); |
35 | extern int ceph_encrypt(struct ceph_crypto_key *secret, | 33 | int ceph_encrypt(struct ceph_crypto_key *secret, |
36 | void *dst, size_t *dst_len, | 34 | void *dst, size_t *dst_len, |
37 | const void *src, size_t src_len); | 35 | const void *src, size_t src_len); |
38 | extern int ceph_decrypt2(struct ceph_crypto_key *secret, | 36 | int ceph_decrypt2(struct ceph_crypto_key *secret, |
39 | void *dst1, size_t *dst1_len, | 37 | void *dst1, size_t *dst1_len, |
40 | void *dst2, size_t *dst2_len, | 38 | void *dst2, size_t *dst2_len, |
41 | const void *src, size_t src_len); | 39 | const void *src, size_t src_len); |
42 | extern int ceph_encrypt2(struct ceph_crypto_key *secret, | 40 | int ceph_encrypt2(struct ceph_crypto_key *secret, |
43 | void *dst, size_t *dst_len, | 41 | void *dst, size_t *dst_len, |
44 | const void *src1, size_t src1_len, | 42 | const void *src1, size_t src1_len, |
45 | const void *src2, size_t src2_len); | 43 | const void *src2, size_t src2_len); |
46 | extern int ceph_crypto_init(void); | 44 | int ceph_crypto_init(void); |
47 | extern void ceph_crypto_shutdown(void); | 45 | void ceph_crypto_shutdown(void); |
48 | 46 | ||
49 | /* armor.c */ | 47 | /* armor.c */ |
50 | extern int ceph_armor(char *dst, const char *src, const char *end); | 48 | int ceph_armor(char *dst, const char *src, const char *end); |
51 | extern int ceph_unarmor(char *dst, const char *src, const char *end); | 49 | int ceph_unarmor(char *dst, const char *src, const char *end); |
52 | 50 | ||
53 | #endif | 51 | #endif |