summaryrefslogtreecommitdiff
path: root/src/cryptsetup/cryptsetup-keyfile.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-28 21:26:33 +0200
committerLennart Poettering <lennart@poettering.net>2020-09-02 15:00:32 +0200
commit1e2f32305c78cc3f0b8f9e6c8c1dc6617a3ef502 (patch)
tree096a67f6703d529d4504ea77f63450603cda75a1 /src/cryptsetup/cryptsetup-keyfile.h
parent346543d6f939ab0c9941b71c0a5e3ead07b447d1 (diff)
downloadsystemd-1e2f32305c78cc3f0b8f9e6c8c1dc6617a3ef502.tar.gz
shared: rename crypt-util.c → cryptsetup-util.c
"crypt-util.c" is such a generic name, let's avoid that, in particular as libc's/libcrypt's crypt() function is so generically named too that one might thing this is about that. Let's hence be more precise, and make clear that this is about cryptsetup, and nothing else. We already had cryptsetup-util.[ch] in src/cryptsetup/ doing keyfile management. To avoid the needless confusion, let's rename that file to cryptsetup-keyfile.[ch].
Diffstat (limited to 'src/cryptsetup/cryptsetup-keyfile.h')
-rw-r--r--src/cryptsetup/cryptsetup-keyfile.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cryptsetup/cryptsetup-keyfile.h b/src/cryptsetup/cryptsetup-keyfile.h
new file mode 100644
index 0000000000..7bb78227dc
--- /dev/null
+++ b/src/cryptsetup/cryptsetup-keyfile.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+#pragma once
+
+#include <inttypes.h>
+#include <sys/types.h>
+
+int load_key_file(
+ const char *key_file,
+ char **search_path,
+ size_t key_file_size,
+ uint64_t key_file_offset,
+ void **ret_key,
+ size_t *ret_key_size);