diff options
author | Tommi Virtanen <tommi.virtanen@dreamhost.com> | 2011-03-28 23:59:38 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-03-29 21:11:24 +0200 |
commit | 4b2a58abd1e17c0ee53c8dded879e015917cca67 (patch) | |
tree | 585a02b8e3e36f7e6069d43000355e75aba097d3 /net/ceph/crypto.h | |
parent | libceph: Get secret from the kernel keys api when mounting with key=NAME. (diff) | |
download | linux-4b2a58abd1e17c0ee53c8dded879e015917cca67.tar.xz linux-4b2a58abd1e17c0ee53c8dded879e015917cca67.zip |
libceph: Create a new key type "ceph".
This allows us to use existence of the key type as a feature test,
from userspace.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/ceph/crypto.h')
-rw-r--r-- | net/ceph/crypto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/crypto.h b/net/ceph/crypto.h index 6cf6edc91ec4..1919d1550d75 100644 --- a/net/ceph/crypto.h +++ b/net/ceph/crypto.h @@ -42,6 +42,8 @@ extern int ceph_encrypt2(struct ceph_crypto_key *secret, void *dst, size_t *dst_len, const void *src1, size_t src1_len, const void *src2, size_t src2_len); +extern int ceph_crypto_init(void); +extern void ceph_crypto_shutdown(void); /* armor.c */ extern int ceph_armor(char *dst, const char *src, const char *end); |