]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/crypt-util.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / shared / crypt-util.h
CommitLineData
294bd454 1/* SPDX-License-Identifier: LGPL-2.1+ */
f18edd8a 2#pragma once
294bd454
ZJS
3
4#if HAVE_LIBCRYPTSETUP
5#include <libcryptsetup.h>
6
7#include "macro.h"
8
c116b035
ZJS
9/* libcryptsetup define for any LUKS version, compatible with libcryptsetup 1.x */
10#ifndef CRYPT_LUKS
11#define CRYPT_LUKS NULL
12#endif
13
294bd454 14DEFINE_TRIVIAL_CLEANUP_FUNC(struct crypt_device *, crypt_free);
691c2e2e
ZJS
15
16void cryptsetup_log_glue(int level, const char *msg, void *usrptr);
294bd454 17#endif