Remove crypt_token_load from API.

This commit is contained in:
Ondrej Kozina
2021-01-19 18:05:29 +01:00
parent aa9eef28c4
commit 81c44b5eee
3 changed files with 0 additions and 21 deletions

View File

@@ -2231,15 +2231,6 @@ int crypt_token_register(const crypt_token_handler *handler);
/** ABI exported symbol for external token */
#define CRYPT_TOKEN_ABI_HANDLER "cryptsetup_token_handler"
/**
* Find external library, load and register token handler
*
* @param name token name to register
*
* @return @e 0 on success or negative errno value otherwise.
*/
int crypt_token_load(struct crypt_device *cd, const char *name);
/**
* Activate device or check key using a token.
*

View File

@@ -59,7 +59,6 @@ CRYPTSETUP_2.0 {
crypt_token_unassign_keyslot;
crypt_token_is_assigned;
crypt_token_register;
crypt_token_load;
crypt_activate_by_token;

View File

@@ -127,17 +127,6 @@ int crypt_token_register(const crypt_token_handler *handler)
return 0;
}
int crypt_token_load(struct crypt_device *cd, const char *name)
{
int i, r;
r = crypt_token_find_free(cd, name, &i);
if (r < 0)
return r;
return crypt_token_load_external(cd, name, &token_handlers[i]);
}
void crypt_token_unload_external_all(struct crypt_device *cd)
{
int i;