]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/crypt-util.h
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / basic / crypt-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #if HAVE_LIBCRYPTSETUP
5 #include <libcryptsetup.h>
6
7 #include "macro.h"
8
9 /* libcryptsetup define for any LUKS version, compatible with libcryptsetup 1.x */
10 #ifndef CRYPT_LUKS
11 #define CRYPT_LUKS NULL
12 #endif
13
14 DEFINE_TRIVIAL_CLEANUP_FUNC(struct crypt_device *, crypt_free);
15
16 void cryptsetup_log_glue(int level, const char *msg, void *usrptr);
17 #endif