Skip to content

Commit

Permalink
tpm2_hash: update to libyaml
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Roberts <[email protected]>
  • Loading branch information
williamcroberts committed Dec 8, 2023
1 parent 5aa45ed commit 8f7157c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/tpm2_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ static bool tpm2_tool_onstart(tpm2_options **opts) {
/* set up non-static defaults here */
ctx.input_file = stdin;

/*
* Unfortunately this writes to whatever -o is specified and can't be hooked as
* normal stdout behavior, leave as is and don't yaml-afy
*/
*opts = tpm2_options_new("C:g:o:t:", ARRAY_LEN(topts), topts, on_option,
on_args, 0);
on_args, TPM2_OPTIONS_NO_OUTPUT);

return *opts != NULL;
}
Expand Down

0 comments on commit 8f7157c

Please sign in to comment.