Blame SOURCES/volume_key-0.3.12-support_LUKS2_and_more.patch
|
|
7f5a10 |
diff --git a/lib/volume_luks.c b/lib/volume_luks.c
|
|
|
7f5a10 |
index f4bf2c8..d1c5d47 100644
|
|
|
7f5a10 |
--- a/lib/volume_luks.c
|
|
|
7f5a10 |
+++ b/lib/volume_luks.c
|
|
|
7f5a10 |
@@ -30,6 +30,10 @@ Author: Miloslav Trmač <mitr@redhat.com> */
|
|
|
7f5a10 |
#include "volume.h"
|
|
|
7f5a10 |
#include "volume_luks.h"
|
|
|
7f5a10 |
|
|
|
7f5a10 |
+#ifndef CRYPT_LUKS
|
|
|
7f5a10 |
+#define CRYPT_LUKS NULL
|
|
|
7f5a10 |
+#endif
|
|
|
7f5a10 |
+
|
|
|
7f5a10 |
/* LUKS - specific code */
|
|
|
7f5a10 |
|
|
|
7f5a10 |
/* Return an error message for ERR_NO, for g_free (). */
|
|
|
7f5a10 |
@@ -105,7 +109,7 @@ open_crypt_device (const char *path, char **last_log_entry, GError **error)
|
|
|
7f5a10 |
if (r < 0)
|
|
|
7f5a10 |
goto err;
|
|
|
7f5a10 |
crypt_set_log_callback(cd, record_cryptsetup_log_entry, last_log_entry);
|
|
|
7f5a10 |
- r = crypt_load (cd, CRYPT_LUKS1, NULL);
|
|
|
7f5a10 |
+ r = crypt_load (cd, CRYPT_LUKS, NULL);
|
|
|
7f5a10 |
if (r < 0)
|
|
|
7f5a10 |
goto err_cd;
|
|
|
7f5a10 |
return cd;
|