Add pin size parameter in crypt_active_by_pin_token.

Well, after all it really should have supported binary data
of arbitrary length.
This commit is contained in:
Ondrej Kozina
2021-03-11 18:15:18 +01:00
parent d4cd675f33
commit 5d0a11a21b
6 changed files with 22 additions and 12 deletions

View File

@@ -1542,7 +1542,7 @@ static int action_open_luks(void)
if (r < 0)
goto out;
r = crypt_activate_by_pin_token(cd, activated_name, ARG_INT32(OPT_TOKEN_ID_ID),
password, NULL, activate_flags);
password, passwordLen, NULL, activate_flags);
tools_keyslot_msg(r, UNLOCKED);
}