build: reanimate the dead
Fix build with ndn-cxx 0.7.1 and ChronoSync 0.5.3
* Adapt to new API
* Upgrade to Qt5
* Several other bugs
Refs: #4563, #4087
Change-Id: Ic55d687caade08f557f9b9ec3e9569bc96798710
diff --git a/src/endorse-certificate.hpp b/src/endorse-certificate.hpp
index 51b3b50..defc8a8 100644
--- a/src/endorse-certificate.hpp
+++ b/src/endorse-certificate.hpp
@@ -16,14 +16,14 @@
namespace chronochat {
-class EndorseCertificate : public ndn::Certificate
+class EndorseCertificate : public ndn::security::Certificate
{
public:
- class Error : public ndn::Certificate::Error
+ class Error : public ndn::security::Certificate::Error
{
public:
Error(const std::string& what)
- : ndn::Certificate::Error(what)
+ : ndn::security::Certificate::Error(what)
{
}
};
@@ -32,7 +32,7 @@
EndorseCertificate() {}
- EndorseCertificate(const ndn::IdentityCertificate& kskCertificate,
+ EndorseCertificate(const ndn::security::Certificate& kskCertificate,
const Profile& profile,
const std::vector<std::string>& endorseList = DEFAULT_ENDORSE_LIST);
@@ -41,9 +41,10 @@
const std::vector<std::string>& endorseList = DEFAULT_ENDORSE_LIST);
EndorseCertificate(const Name& keyName,
- const ndn::PublicKey& key,
+ const ndn::Buffer& key,
const time::system_clock::TimePoint& notBefore,
const time::system_clock::TimePoint& notAfter,
+ const Name::Component& signerKeyId,
const Name& signer,
const Profile& profile,
const std::vector<std::string>& endorseList = DEFAULT_ENDORSE_LIST);
@@ -75,21 +76,10 @@
return m_endorseList;
}
- const Name&
- getPublicKeyName () const
- {
- return m_keyName;
- }
-
private:
- static const ndn::OID PROFILE_EXT_OID;
- static const ndn::OID ENDORSE_EXT_OID;
-
- Name m_keyName;
- Name m_signer; // signing key name
+ Name m_signer;
Profile m_profile;
std::vector<std::string> m_endorseList;
-
};
} // namespace chronochat