Add api exposing external token handlers support.

This commit is contained in:
Ondrej Kozina
2021-05-12 11:15:13 +02:00
parent c40be6cc7a
commit db44e9de22
3 changed files with 17 additions and 0 deletions

View File

@@ -38,6 +38,15 @@ static struct crypt_token_handler_internal token_handlers[LUKS2_TOKENS_MAX] = {
}
};
int crypt_token_external_support(void)
{
#if USE_EXTERNAL_TOKENS
return 0;
#else
return -ENOTSUP;
#endif
}
#if USE_EXTERNAL_TOKENS
static void *token_dlvsym(struct crypt_device *cd,
void *handle,