Fix hash array size in verify_ima()
authorVivek Goyal <vgoyal@redhat.com>
Fri, 12 Jul 2013 18:52:06 +0000 (14:52 -0400)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Mon, 15 Jul 2013 15:00:32 +0000 (18:00 +0300)
commitb48f4f9c7e9ebfa5f2e764ee75f71d44121205a6
tree236714a9673027b270b8d2024351dce6f02fde43
parent16d40dbdf629126c2ec81c9c68c5c752a6d4ea13
Fix hash array size in verify_ima()

Now evmctl supports different hash algorithms and sha512 will produce
64 byte digest. verify_ima() still allocates only 20bytes to store hash.
This does not work with larger hashes.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
src/evmctl.c