diff options
Diffstat (limited to 'fs/ceph/armor.c')
| -rw-r--r-- | fs/ceph/armor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ceph/armor.c b/fs/ceph/armor.c index 67b2c030924b..eb2a666b0be7 100644 --- a/fs/ceph/armor.c +++ b/fs/ceph/armor.c | |||
| @@ -1,11 +1,15 @@ | |||
| 1 | 1 | ||
| 2 | #include <linux/errno.h> | 2 | #include <linux/errno.h> |
| 3 | 3 | ||
| 4 | int ceph_armor(char *dst, const char *src, const char *end); | ||
| 5 | int ceph_unarmor(char *dst, const char *src, const char *end); | ||
| 6 | |||
| 4 | /* | 7 | /* |
| 5 | * base64 encode/decode. | 8 | * base64 encode/decode. |
| 6 | */ | 9 | */ |
| 7 | 10 | ||
| 8 | const char *pem_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | 11 | static const char *pem_key = |
| 12 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | ||
| 9 | 13 | ||
| 10 | static int encode_bits(int c) | 14 | static int encode_bits(int c) |
| 11 | { | 15 | { |
