projects
/
platform
/
upstream
/
cryptsetup.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.6.1
[platform/upstream/cryptsetup.git]
/
tests
/
fake_systemd_tpm_path.c
1
#include <string.h>
2
#include <stdlib.h>
3
4
/* systemd tpm2-util.h */
5
int tpm2_find_device_auto(int log_level, char **ret);
6
7
extern int tpm2_find_device_auto(int log_level __attribute__((unused)), char **ret)
8
{
9
const char *path = getenv("TPM_PATH");
10
11
if (!path)
12
*ret = NULL;
13
else
14
*ret = strdup(path);
15
16
return 0;
17
}