diff options
author | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-01-20 22:01:01 -0500 |
---|---|---|
committer | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-01-20 22:01:01 -0500 |
commit | 549bd6bb2df937cea28eddf9d5e446af1eeb4ac3 (patch) | |
tree | 6210c21dafb28d8c214ce2742f5048d01ec9bf6f /crtSignedContainer.sh | |
parent | e34abf2f58039ff51c40982210891080662cda9a (diff) | |
download | sb-signing-utils-549bd6bb2df937cea28eddf9d5e446af1eeb4ac3.tar.gz sb-signing-utils-549bd6bb2df937cea28eddf9d5e446af1eeb4ac3.zip |
Remove dependence on 'xxd' (part 2)
This patch removes the second dependency in crtSignedContainer.sh, in the
generation of the payload hash, in Production mode. Now the .md files
are generated by create-container instead.
Signed-off-by: Dave Heller <hellerda@linux.vnet.ibm.com>
Diffstat (limited to 'crtSignedContainer.sh')
-rwxr-xr-x | crtSignedContainer.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crtSignedContainer.sh b/crtSignedContainer.sh index ecfa291..129251f 100755 --- a/crtSignedContainer.sh +++ b/crtSignedContainer.sh @@ -218,7 +218,7 @@ parseIni () { # # Check required programs -for p in date egrep tar xxd openssl sha512sum create-container print-container +for p in date egrep tar openssl create-container print-container do is_cmd_available $p || \ die "Required command \"$p\" not available or not found in PATH" @@ -768,11 +768,10 @@ then else test "$KEYFILE" == __getkey && continue echo "--> $P: Requesting signature for SW key $(to_upper $KEY)..." - sha512sum "$T/software_hdr" | cut -d' ' -f1 | xxd -p -r > "$T/software_hdr.sha512.bin" sf_client $SF_DEBUG_ARGS -project $SF_PROJECT -epwd "$SF_EPWD" \ -comments "Requesting sig for $LABEL from $SF_PROJECT" \ -url sftp://$SF_USER@$SF_SERVER -pkey "$SF_SSHKEY" \ - -payload "$T/software_hdr.sha512.bin" -o "$T/$SIGFILE" + -payload "$T/software_hdr.md.bin" -o "$T/$SIGFILE" rc=$? test $rc -ne 0 && die "Call to sf_client failed with error: $rc" |