Move try_token_unlock to luks utils.

and rename it to luks_try_token_unlock.
This commit is contained in:
Ondrej Kozina
2025-04-25 18:22:26 +02:00
committed by Milan Broz
parent 4493d9ad3e
commit 5f48657f4d
3 changed files with 92 additions and 80 deletions

View File

@@ -43,4 +43,14 @@ int luks_init_keyslot_context(struct crypt_device *cd,
bool verify, bool pwquality,
struct crypt_keyslot_context **r_kc);
int luks_try_token_unlock(struct crypt_device *cd,
int keyslot,
int token_id,
const char *activated_name,
const char *token_type,
uint32_t activate_flags,
int tries,
bool activation,
bool token_only);
#endif /* UTILS_LUKS_H */