Put right hash algo info in digital signature version 1 header
authorVivek Goyal <vgoyal@redhat.com>
Fri, 12 Jul 2013 18:52:07 +0000 (14:52 -0400)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Mon, 15 Jul 2013 15:01:05 +0000 (18:01 +0300)
commit00caa1d5ba376cc5d756cc0bf721ace36204d70a
treef55f817c0ef06ebf0891e76a15163e1c7adf4d16
parentb48f4f9c7e9ebfa5f2e764ee75f71d44121205a6
Put right hash algo info in digital signature version 1 header

hdr->hash for signature version 1 contains the info about what hash
algorithm has been used for signing the file. Currently we always set
hdr->hash to DIGEST_ALGO_SHA1. But one can sign file using SHA256 using
option "-a sha256". In that case we should put right hash algo info
in signature header. Fix it.

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