mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add API and CLI option to disable token plugins.
This could be useful for debugging external plugins or ot intentionally disable loading of a token library.
This commit is contained in:
@@ -2256,11 +2256,17 @@ int crypt_token_register(const crypt_token_handler *handler);
|
||||
|
||||
/**
|
||||
* Report external token handlers (plugins) support
|
||||
|
||||
*
|
||||
* @return @e 0 when enabled or negative errno value otherwise.
|
||||
*/
|
||||
int crypt_token_external_support(void);
|
||||
|
||||
/**
|
||||
* Disable external token handlers (plugins) support
|
||||
* If disabled, it cannot be enabled again.
|
||||
*/
|
||||
void crypt_token_external_disable(void);
|
||||
|
||||
/** ABI version for external token in libcryptsetup-token-<name>.so */
|
||||
#define CRYPT_TOKEN_ABI_VERSION1 "CRYPTSETUP_TOKEN_1.0"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user