From 19f4f86bfed21c5326ed2acebe1163f3a83e832b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:25:50 +0200 Subject: Adding upstream version 241. Signed-off-by: Daniel Baumann --- src/shared/crypt-util.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/shared/crypt-util.h (limited to 'src/shared/crypt-util.h') diff --git a/src/shared/crypt-util.h b/src/shared/crypt-util.h new file mode 100644 index 0000000..8c86714 --- /dev/null +++ b/src/shared/crypt-util.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ +#pragma once + +#if HAVE_LIBCRYPTSETUP +#include + +#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 -- cgit v1.2.3