From 2ad69eba9082ffcc42d3b9e7ff8e8fa1e4847c97 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 27 Feb 2014 13:26:05 +0100 Subject: [PATCH] Verify new passphrase by default in luksChangeKey and luksAddKey. --- src/cryptsetup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryptsetup.c b/src/cryptsetup.c index 22fe4a5f..c97049de 100644 --- a/src/cryptsetup.c +++ b/src/cryptsetup.c @@ -977,7 +977,7 @@ static int action_luksAddKey(void) r = tools_get_key(_("Enter new passphrase for key slot: "), &password_new, &password_new_size, 0, 0, NULL, - opt_timeout, _verify_passphrase(0), 1, cd); + opt_timeout, _verify_passphrase(1), 1, cd); if (r < 0) goto out; @@ -1028,7 +1028,7 @@ static int action_luksChangeKey(void) &password_new, &password_new_size, opt_new_keyfile_offset, opt_new_keyfile_size, opt_new_key_file, - opt_timeout, _verify_passphrase(0), 1, cd); + opt_timeout, _verify_passphrase(1), 1, cd); if (r < 0) goto out;