Allow passphrase change for unbound keyslots.

Also fixes small typo in API.

Fixes #409.
This commit is contained in:
Ondrej Kozina
2018-09-24 18:10:02 +02:00
committed by Milan Broz
parent ee689d88b4
commit cd1c36ef94
3 changed files with 9 additions and 3 deletions

View File

@@ -1520,7 +1520,7 @@ static int action_luksChangeKey(void)
/* Check password before asking for new one */
r = crypt_activate_by_passphrase(cd, NULL, opt_key_slot,
password, password_size, 0);
password, password_size, CRYPT_ACTIVATE_ALLOW_UNBOUND_KEY);
tools_passphrase_msg(r);
check_signal(&r);
if (r < 0)