Let user specified hash algo take precedence
authorVivek Goyal <vgoyal@redhat.com>
Fri, 12 Jul 2013 18:52:09 +0000 (14:52 -0400)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 9 Aug 2013 12:55:49 +0000 (15:55 +0300)
commitb49e2251a082f308ed66a165856442b2eec3edf0
tree8070ccf7c753c85fdd0b2a6d668208592a94d81b
parentfa3c365cce3bbe8d2f6fa80019677ed20b9b2f67
Let user specified hash algo take precedence

After applying previous patch, we will always get hash algo info from
signature and if user specified one on command line, that will be overridden.

This is like breaking old behavior. So keep track whether user specified
hash algo on command line or not. If user did not specify one then get
hash algo info from signature otherwise use the one user provided.

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