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:
Ondrej Kozina
2021-05-21 15:55:15 +02:00
committed by Milan Broz
parent ca2e93b69d
commit df7a995fa2
3 changed files with 0 additions and 36 deletions

View File

@@ -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;