diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-11-08 22:34:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-11-09 12:48:27 +0100 |
commit | d30693f39b2be125fad68f8d860e59cc3cb98071 (patch) | |
tree | f35f951d531728035374be5c1f5f606ccc4892f8 /src/analyze/analyze-srk.h | |
parent | tpm2-setup: also save the SRK to the file system in TPM2_PUBLIC format (diff) | |
download | systemd-d30693f39b2be125fad68f8d860e59cc3cb98071.tar.xz systemd-d30693f39b2be125fad68f8d860e59cc3cb98071.zip |
analyze: add "srk" verb to extract current srk from TPM2 chip
This is pretty low-level functionality, hence placed in systemd-analyze.
This is useful for working with systemd-cryptenroll --tpm2-device-key=,
as it acquires the SRK without requiring the full tpm2-tss tool set.
Diffstat (limited to 'src/analyze/analyze-srk.h')
-rw-r--r-- | src/analyze/analyze-srk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/analyze/analyze-srk.h b/src/analyze/analyze-srk.h new file mode 100644 index 0000000000..26028354f8 --- /dev/null +++ b/src/analyze/analyze-srk.h @@ -0,0 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +int verb_srk(int argc, char *argv[], void *userdata); |