Blame SOURCES/cryptsetup-2.0.4-fix-LUKS2-api-test.patch
|
|
8af939 |
diff -rupN cryptsetup-2.0.3.old/tests/api-test-2.c cryptsetup-2.0.3/tests/api-test-2.c
|
|
|
8af939 |
--- cryptsetup-2.0.3.old/tests/api-test-2.c 2019-03-27 21:31:18.684160803 +0100
|
|
|
8af939 |
+++ cryptsetup-2.0.3/tests/api-test-2.c 2019-03-27 21:32:14.762630391 +0100
|
|
|
8af939 |
@@ -2514,8 +2514,8 @@ static void Luks2Requirements(void)
|
|
|
8af939 |
FAIL_((r = crypt_set_label(cd, "label", "subsystem")), "Unmet requirements detected");
|
|
|
8af939 |
EQ_(r, -ETXTBSY);
|
|
|
8af939 |
|
|
|
8af939 |
- /* crypt_repair (not implemented for luks2) */
|
|
|
8af939 |
- FAIL_(crypt_repair(cd, CRYPT_LUKS2, NULL), "Not implemented");
|
|
|
8af939 |
+ /* crypt_repair (with current repair capabilities it's unrestricted) */
|
|
|
8af939 |
+ OK_(crypt_repair(cd, CRYPT_LUKS2, NULL));
|
|
|
8af939 |
|
|
|
8af939 |
/* crypt_keyslot_add_passphrase (restricted) */
|
|
|
8af939 |
FAIL_((r = crypt_keyslot_add_by_passphrase(cd, CRYPT_ANY_SLOT, "aaa", 3, "bbb", 3)), "Unmet requirements detected");
|