sbsigntools/tests/sign-detach-verify.sh
Jeremy Kerr 36e79114d2 sbattach: fix --detach
sbattach --detach isn't working, as we're not properly setting sigbuf in
image_pecoff parse.

This change ensures we populate sigbuf when we find a valid cert table.
Also, add a test case for this.

Bug report & initial patch from from Steve Langasek.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
2012-08-02 16:47:14 +08:00

10 lines
232 B
Bash
Executable file

#!/bin/bash -e
. "$srcdir/common.sh"
signed="test.signed"
sig="test.sig"
"$sbsign" --cert "$cert" --key "$key" --output "$signed" "$image"
"$sbattach" --detach "$sig" "$signed"
"$sbverify" --cert "$cert" --detached $sig "$image"