diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-10-29 22:58:32 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-11-28 19:42:40 +0100 |
commit | d8399b8b85a37f8dc96b22843208aa63606a435f (patch) | |
tree | dacb2bdfc047d968bd4c61136d952e57d6e59d34 /src/libimcv/plugins/imv_attestation/attest.c | |
parent | f33a89431c2f55875d20f3015976cd2c3d7ab929 (diff) | |
download | strongswan-d8399b8b85a37f8dc96b22843208aa63606a435f.tar.bz2 strongswan-d8399b8b85a37f8dc96b22843208aa63606a435f.tar.xz |
get measurement hashes for a given file
Diffstat (limited to 'src/libimcv/plugins/imv_attestation/attest.c')
-rw-r--r-- | src/libimcv/plugins/imv_attestation/attest.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libimcv/plugins/imv_attestation/attest.c b/src/libimcv/plugins/imv_attestation/attest.c index 81807b24f..d2aa52fa7 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(); |