mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Remove redundant (unreleased) API for token based activation.
Reverts commit 96d83455ca partially. It is not necessary to
have specific crypt_activate_by_token_type call. Users
may use crypt_activate_by_token_pin with pin argument set to NULL
and achieve same goal as with crypt_activate_by_token_type.
This commit is contained in:
committed by
Milan Broz
parent
ca2e93b69d
commit
df7a995fa2
@@ -5699,13 +5699,6 @@ int crypt_activate_by_token(struct crypt_device *cd,
|
||||
return crypt_activate_by_token_pin(cd, name, NULL, token, NULL, 0, usrptr, flags);
|
||||
}
|
||||
|
||||
int crypt_activate_by_token_type(struct crypt_device *cd,
|
||||
const char *name, const char *type, int token,
|
||||
void *usrptr, uint32_t flags)
|
||||
{
|
||||
return crypt_activate_by_token_pin(cd, name, type, token, NULL, 0, usrptr, flags);
|
||||
}
|
||||
|
||||
int crypt_token_json_get(struct crypt_device *cd, int token, const char **json)
|
||||
{
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user