diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-01 17:58:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-01 17:58:58 +0100 |
commit | 1a2d4d70845f483bcb3f704fa092f5fd76580d31 (patch) | |
tree | 35991bc9a914c788950c09b1abb072f0b8d350fc /src/basic/crypt-util.h | |
parent | NEWS: update the text a bit (#7524) (diff) | |
parent | util-lib: handle empty string in last_path_component (diff) | |
download | systemd-1a2d4d70845f483bcb3f704fa092f5fd76580d31.tar.xz systemd-1a2d4d70845f483bcb3f704fa092f5fd76580d31.zip |
Merge pull request #7237 from keszybz/growfs
Create and grow filesystems
Diffstat (limited to 'src/basic/crypt-util.h')
-rw-r--r-- | src/basic/crypt-util.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/basic/crypt-util.h b/src/basic/crypt-util.h new file mode 100644 index 0000000000..537f785607 --- /dev/null +++ b/src/basic/crypt-util.h @@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +/*** + This file is part of systemd. + + Copyright 2017 Zbigniew Jędrzejewski-Szmek + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + systemd is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with systemd; If not, see <http://www.gnu.org/licenses/>. +***/ + +#if HAVE_LIBCRYPTSETUP +#include <libcryptsetup.h> + +#include "macro.h" + +/* libcryptsetup define for any LUKS version, compatible with libcryptsetup 1.x */ +#ifndef CRYPT_LUKS +#define CRYPT_LUKS NULL +#endif + +DEFINE_TRIVIAL_CLEANUP_FUNC(struct crypt_device *, crypt_free); + +void cryptsetup_log_glue(int level, const char *msg, void *usrptr); +#endif |