summaryrefslogtreecommitdiffstats
path: root/test/test_signature.cpp
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2019-03-18 15:22:56 +0800
committerGunnar Mills <gmills@us.ibm.com>2019-04-04 20:13:55 +0000
commit2b2d2298f5c6e9e596ed3ae84326a6ae804c46a4 (patch)
tree29dbffbb025678743a19d2fac3ca0f4cf64be017 /test/test_signature.cpp
parent799eb1972c141271068cd4ea1010753e0347d8ab (diff)
downloadopenpower-pnor-code-mgmt-2b2d2298f5c6e9e596ed3ae84326a6ae804c46a4.tar.gz
openpower-pnor-code-mgmt-2b2d2298f5c6e9e596ed3ae84326a6ae804c46a4.zip
Static layout: support image verification
Add support of image verification for static layout PNOR code update. Tested: Verify the PNOR code update succeeds with valid-signed PNOR; and fails with invalid-signed PNOR or a PNOR tarball without signature. Change-Id: I1aafeb4e8e07eaa16c170f33f4f21940f7c9c146 Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'test/test_signature.cpp')
-rw-r--r--test/test_signature.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_signature.cpp b/test/test_signature.cpp
index b199c7467..9e8de4bcc 100644
--- a/test/test_signature.cpp
+++ b/test/test_signature.cpp
@@ -82,7 +82,8 @@ class SignatureTest : public testing::Test
command(opensslCmd + pkeyFile + " -out " + pubkeyFile + ".sig " +
pubkeyFile);
- signature = std::make_unique<Signature>(extractPath, signedConfPath);
+ signature = std::make_unique<Signature>(extractPath, "pnor.xz.squashfs",
+ signedConfPath);
}
virtual void TearDown()
{
OpenPOWER on IntegriCloud