diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index 9aa03aca..fcd949c2 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -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. * diff --git a/lib/libcryptsetup.sym b/lib/libcryptsetup.sym index 0f2d6df7..1f94b8d2 100644 --- a/lib/libcryptsetup.sym +++ b/lib/libcryptsetup.sym @@ -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; diff --git a/lib/luks2/luks2_token.c b/lib/luks2/luks2_token.c index 5639cc33..f4fda91b 100644 --- a/lib/luks2/luks2_token.c +++ b/lib/luks2/luks2_token.c @@ -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;