mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
The prototype for the function in systemd has changed. Otrherwise the tests abort with SEGFAULT.
18 lines
265 B
C
18 lines
265 B
C
#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;
|
|
}
|