Blame SOURCES/volume_key-0.3.11-support_LUKS_all.patch
|
|
a7462a |
From d0aa966c014d8301371e693966dcac3d9e9c0ccd Mon Sep 17 00:00:00 2001
|
|
|
a7462a |
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
|
a7462a |
Date: Mon, 10 Sep 2018 13:07:41 +0200
|
|
|
a7462a |
Subject: [PATCH] Add suppport for opening LUKS2 devices
|
|
|
a7462a |
|
|
|
a7462a |
---
|
|
|
a7462a |
lib/volume_luks.c | 6 +++++-
|
|
|
a7462a |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
a7462a |
|
|
|
a7462a |
diff --git a/lib/volume_luks.c b/lib/volume_luks.c
|
|
|
a7462a |
index f4bf2c8..d1c5d47 100644
|
|
|
a7462a |
--- a/lib/volume_luks.c
|
|
|
a7462a |
+++ b/lib/volume_luks.c
|
|
|
a7462a |
@@ -30,6 +30,10 @@ Author: Miloslav Trmač <mitr@redhat.com> */
|
|
|
a7462a |
#include "volume.h"
|
|
|
a7462a |
#include "volume_luks.h"
|
|
|
a7462a |
|
|
|
a7462a |
+#ifndef CRYPT_LUKS
|
|
|
a7462a |
+#define CRYPT_LUKS NULL
|
|
|
a7462a |
+#endif
|
|
|
a7462a |
+
|
|
|
a7462a |
/* LUKS - specific code */
|
|
|
a7462a |
|
|
|
a7462a |
/* Return an error message for ERR_NO, for g_free (). */
|
|
|
a7462a |
@@ -105,7 +109,7 @@ open_crypt_device (const char *path, char **last_log_entry, GError **error)
|
|
|
a7462a |
if (r < 0)
|
|
|
a7462a |
goto err;
|
|
|
a7462a |
crypt_set_log_callback(cd, record_cryptsetup_log_entry, last_log_entry);
|
|
|
a7462a |
- r = crypt_load (cd, CRYPT_LUKS1, NULL);
|
|
|
a7462a |
+ r = crypt_load (cd, CRYPT_LUKS, NULL);
|
|
|
a7462a |
if (r < 0)
|
|
|
a7462a |
goto err_cd;
|
|
|
a7462a |
return cd;
|
|
|
a7462a |
--
|
|
|
a7462a |
2.17.1
|
|
|
a7462a |
|