mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
18 lines
319 B
C
18 lines
319 B
C
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
/* systemd tpm2-util.h */
|
|
int tpm2_find_device_auto(int log_level, char **ret);
|
|
|
|
extern int tpm2_find_device_auto(int log_level __attribute__((unused)), char **ret)
|
|
{
|
|
const char *path = getenv("TPM_PATH");
|
|
|
|
if (!path)
|
|
*ret = NULL;
|
|
else
|
|
*ret = strdup(path);
|
|
|
|
return 0;
|
|
}
|