src/zlevis-encrypt: update
Reverted prior adaptation in parsing policy_options in tpm2_create due to incombatility with systems using busybox
This commit is contained in:
parent
fb6d31b727
commit
d415066add
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ trap 'rm -f "$tmp_primary_context" "$tmp_pcr_policy" "$tmp_jwk_pub" "$tmp_jwk_pr
|
||||||
|
|
||||||
# Create the TPM2 object for the JWK
|
# Create the TPM2 object for the JWK
|
||||||
case "$tpm2tools_version" in
|
case "$tpm2tools_version" in
|
||||||
4|5) printf "%s" "$jwk" | tpm2_create -Q -g "$hash" -C "$tmp_primary_context" -u "$tmp_jwk_pub" -r "$tmp_jwk_priv" -a "$obj_attr" -L "${policy_options[@]}" -i- || fail=$?;;
|
4|5) printf "%s" "$jwk" | tpm2_create -Q -g "$hash" -C "$tmp_primary_context" -u "$tmp_jwk_pub" -r "$tmp_jwk_priv" -a "$obj_attr" -L "$policy_options" -i- || fail=$?;;
|
||||||
*) fail=1;;
|
*) fail=1;;
|
||||||
esac
|
esac
|
||||||
if [ -n "$fail" ]; then
|
if [ -n "$fail" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue