Make changes in token unlock for further changes in reencrypt action.

The token preference condition is moved outside the
try_token_unlock routine body.
This commit is contained in:
Ondrej Kozina
2025-04-25 18:31:39 +02:00
committed by Milan Broz
parent 5f48657f4d
commit 8fcd8a78d8
3 changed files with 24 additions and 12 deletions

View File

@@ -51,6 +51,7 @@ int luks_try_token_unlock(struct crypt_device *cd,
uint32_t activate_flags,
int tries,
bool activation,
bool token_only);
bool retry_with_pin,
struct crypt_keyslot_context **r_kc);
#endif /* UTILS_LUKS_H */