security: Allow Identity and Key abstractions to be used in SigningInfo
Change-Id: Ic1c8d6925557ea5da2011ab68f16587eef2102f3
Refs: #3153
diff --git a/tests/unit-tests/security/signing-helpers.t.cpp b/tests/unit-tests/security/signing-helpers.t.cpp
index eeefcbc..0c608e7 100644
--- a/tests/unit-tests/security/signing-helpers.t.cpp
+++ b/tests/unit-tests/security/signing-helpers.t.cpp
@@ -30,6 +30,8 @@
BOOST_AUTO_TEST_SUITE(Security)
BOOST_AUTO_TEST_SUITE(TestSigningHelpers)
+// update of this test case deferred until the new IdentityManagementFixture is available
+
BOOST_AUTO_TEST_CASE(Identity)
{
Name identity("/identity");
diff --git a/tests/unit-tests/security/signing-info.t.cpp b/tests/unit-tests/security/signing-info.t.cpp
index 5b63ae7..cfada95 100644
--- a/tests/unit-tests/security/signing-info.t.cpp
+++ b/tests/unit-tests/security/signing-info.t.cpp
@@ -158,6 +158,8 @@
.setSigningIdentity("/identity")
.setSigningKeyName("/key/name")
.setSigningCertName("/cert/name")
+ .setPibIdentity(Identity())
+ .setPibKey(Key())
.setSha256Signing()
.setDigestAlgorithm(DigestAlgorithm::SHA256)
.setSignatureInfo(SignatureInfo());
diff --git a/tests/unit-tests/security/v2/key-chain.t.cpp b/tests/unit-tests/security/v2/key-chain.t.cpp
index ddc020b..db14070 100644
--- a/tests/unit-tests/security/v2/key-chain.t.cpp
+++ b/tests/unit-tests/security/v2/key-chain.t.cpp
@@ -300,11 +300,18 @@
SigningInfo(SigningInfo::SIGNER_TYPE_ID, id.getName()),
signingByIdentity(id.getName()),
+ SigningInfo(id),
+ signingByIdentity(id),
+
SigningInfo(SigningInfo::SIGNER_TYPE_KEY, key.getName()),
signingByKey(key.getName()),
+ SigningInfo(key),
+ signingByKey(key),
+
SigningInfo(SigningInfo::SIGNER_TYPE_CERT, cert.getName()),
signingByCertificate(cert.getName()),
+ signingByCertificate(cert),
SigningInfo(SigningInfo::SIGNER_TYPE_SHA256),
signingWithSha256()