mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Remove crypt_token_load from API.
This commit is contained in:
@@ -2231,15 +2231,6 @@ int crypt_token_register(const crypt_token_handler *handler);
|
|||||||
/** ABI exported symbol for external token */
|
/** ABI exported symbol for external token */
|
||||||
#define CRYPT_TOKEN_ABI_HANDLER "cryptsetup_token_handler"
|
#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.
|
* Activate device or check key using a token.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ CRYPTSETUP_2.0 {
|
|||||||
crypt_token_unassign_keyslot;
|
crypt_token_unassign_keyslot;
|
||||||
crypt_token_is_assigned;
|
crypt_token_is_assigned;
|
||||||
crypt_token_register;
|
crypt_token_register;
|
||||||
crypt_token_load;
|
|
||||||
|
|
||||||
crypt_activate_by_token;
|
crypt_activate_by_token;
|
||||||
|
|
||||||
|
|||||||
@@ -127,17 +127,6 @@ int crypt_token_register(const crypt_token_handler *handler)
|
|||||||
return 0;
|
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)
|
void crypt_token_unload_external_all(struct crypt_device *cd)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user