diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-08-28 21:26:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-02 15:00:32 +0200 |
commit | 1e2f32305c78cc3f0b8f9e6c8c1dc6617a3ef502 (patch) | |
tree | 096a67f6703d529d4504ea77f63450603cda75a1 /src/shared/cryptsetup-util.h | |
parent | 346543d6f939ab0c9941b71c0a5e3ead07b447d1 (diff) | |
download | systemd-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/shared/cryptsetup-util.h')
-rw-r--r-- | src/shared/cryptsetup-util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/cryptsetup-util.h b/src/shared/cryptsetup-util.h new file mode 100644 index 0000000000..b9f465fbc1 --- /dev/null +++ b/src/shared/cryptsetup-util.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#if HAVE_LIBCRYPTSETUP +#include <libcryptsetup.h> + +#include "macro.h" + +DEFINE_TRIVIAL_CLEANUP_FUNC(struct crypt_device *, crypt_free); + +void cryptsetup_enable_logging(struct crypt_device *cd); +#endif |