From f0986be2e381953f4ee279db578858a671b80eb3 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 20 Aug 2015 09:21:20 +0200 Subject: [PATCH] Export crypt_keyfile_read(). --- lib/libcryptsetup.h | 10 ++++++++++ lib/libcryptsetup.sym | 2 ++ 2 files changed, 12 insertions(+) diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index bf223a2e..38001cbf 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -1225,6 +1225,16 @@ void crypt_set_debug_level(int level); /** @} */ +/** + * Read keyfile + * + */ +int crypt_keyfile_read(struct crypt_device *cd, + const char *keyfile, + char **key, size_t *key_size_read, + size_t keyfile_offset, + size_t keyfile_size_max); + #ifdef __cplusplus } #endif diff --git a/lib/libcryptsetup.sym b/lib/libcryptsetup.sym index 27c5cb45..615bc6bc 100644 --- a/lib/libcryptsetup.sym +++ b/lib/libcryptsetup.sym @@ -68,6 +68,8 @@ CRYPTSETUP_1.0 { crypt_header_backup; crypt_header_restore; + + crypt_keyfile_read; local: *; };