Remove unused crypt_token_external_support.

API can expose same information with crypt_token_external_path.

Also add print out of external token in cryptsetup --help action
(if enabled)
This commit is contained in:
Ondrej Kozina
2021-06-29 11:16:49 +02:00
committed by Milan Broz
parent df7a995fa2
commit 6633fa626a
4 changed files with 8 additions and 15 deletions

View File

@@ -49,11 +49,6 @@ void crypt_token_external_disable(void)
external_tokens_enabled = false;
}
int crypt_token_external_support(void)
{
return external_tokens_enabled ? 0 : -ENOTSUP;
}
const char *crypt_token_external_path(void)
{
return external_tokens_enabled ? EXTERNAL_LUKS2_TOKENS_PATH : NULL;