1
0
Fork 0
cryptsetup/tests/fake_systemd_tpm_path.c
Daniel Baumann 309c0fd158
Adding upstream version 2:2.7.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 10:45:47 +02:00

19 lines
311 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
#include <string.h>
#include <stdlib.h>
/* systemd tpm2-util.h */
int tpm2_find_device_auto(char **ret);
extern int tpm2_find_device_auto(char **ret)
{
const char *path = getenv("TPM_PATH");
if (!path)
*ret = NULL;
else
*ret = strdup(path);
return 0;
}