Refactor LUKS2 token activation.

Replace LUKS2_token_open_and_activate and
LUKS2_token_open_and_activavate_any with single function
instead.
This commit is contained in:
Ondrej Kozina
2021-04-15 15:22:39 +02:00
parent 8d449aa9a6
commit 8f2b23cd94
3 changed files with 57 additions and 99 deletions

View File

@@ -279,15 +279,6 @@ int LUKS2_token_open_and_activate(struct crypt_device *cd,
uint32_t flags,
void *usrptr);
int LUKS2_token_open_and_activate_any(struct crypt_device *cd,
struct luks2_hdr *hdr,
const char *name,
const char *type,
const char *pin,
size_t pin_size,
uint32_t flags,
void *usrptr);
int LUKS2_token_keyring_get(struct crypt_device *cd,
struct luks2_hdr *hdr,
int token,