mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
tpmr: Provide startsession for TPM1 and TPM2
It's a no-op on TPM1, but provide it so init doesn't have to distinguish TPM1/TPM2. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
5c33130ddc
commit
ea5b8dc30f
@ -578,6 +578,8 @@ if [ "$CONFIG_TPM2_TOOLS" != "y" ]; then
|
||||
shift; tpm1_calcfuturepcr "$@";;
|
||||
seal)
|
||||
shift; tpm1_seal "$@";;
|
||||
startsession)
|
||||
;; # Nothing on TPM1.
|
||||
unseal)
|
||||
shift; tpm1_unseal "$@";;
|
||||
reset)
|
||||
|
@ -72,7 +72,7 @@ else
|
||||
export BG_COLOR_ERROR="${CONFIG_ERROR_BG_COLOR:-""}"
|
||||
fi
|
||||
|
||||
if [ "$CONFIG_TPM2_TOOLS" = "y" ]; then
|
||||
if [ "$CONFIG_TPM" = "y" ]; then
|
||||
# Initialize tpm2 encrypted sessions here
|
||||
tpmr startsession
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user