tests: remove unused KeyChainFixture::makeCert()
If similar functionality is needed in the future,
KeyChain::makeCertificate() should be used instead.
Change-Id: I918a957b70e1516db2b319bd0587d3daa62c18d1
diff --git a/tests/key-chain-fixture.cpp b/tests/key-chain-fixture.cpp
index 59098d7..010716c 100644
--- a/tests/key-chain-fixture.cpp
+++ b/tests/key-chain-fixture.cpp
@@ -21,7 +21,7 @@
#include <ndn-cxx/util/io.hpp>
-#include <boost/filesystem.hpp>
+#include <boost/filesystem/operations.hpp>
namespace ndn::tests {
@@ -40,30 +40,6 @@
}
}
-Certificate
-KeyChainFixture::makeCert(const Key& key, const std::string& issuer, const Key& signingKey)
-{
- Certificate cert;
- cert.setName(Name(key.getName())
- .append(issuer)
- .appendVersion());
-
- // set metainfo
- cert.setContentType(tlv::ContentType_Key);
- cert.setFreshnessPeriod(1_h);
-
- // set content
- cert.setContent(key.getPublicKey());
-
- // set signature info
- ndn::SignatureInfo info;
- auto now = time::system_clock::now();
- info.setValidityPeriod(ValidityPeriod(now - 30_days, now + 30_days));
-
- m_keyChain.sign(cert, signingByKey(signingKey ? signingKey : key).setSignatureInfo(info));
- return cert;
-}
-
bool
KeyChainFixture::saveCert(const Data& cert, const std::string& filename)
{