From d8399b8b85a37f8dc96b22843208aa63606a435f Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sat, 29 Oct 2011 22:58:32 +0200 Subject: [PATCH] get measurement hashes for a given file --- src/libimcv/plugins/imv_attestation/attest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libimcv/plugins/imv_attestation/attest.c b/src/libimcv/plugins/imv_attestation/attest.c index 81807b24fd..d2aa52fa71 100644 --- a/src/libimcv/plugins/imv_attestation/attest.c +++ b/src/libimcv/plugins/imv_attestation/attest.c @@ -180,10 +180,14 @@ static void do_args(int argc, char *argv[]) { list_hashes(algo); } - else + else if (product) { list_hashes_for_product(algo, product, pid); } + else + { + list_hashes_for_file(algo, file, fid); + } break; default: usage(); -- 2.47.3