api-changes: Use ndn-cpp-dev
Change-Id: I4540e601106598d51601e59e5fe9524a9080a572
diff --git a/src/contact-item.cpp b/src/contact-item.cpp
index 3ea941b..13201ae 100644
--- a/src/contact-item.cpp
+++ b/src/contact-item.cpp
@@ -14,10 +14,11 @@
using namespace std;
using namespace ndn;
-using namespace ndn::ptr_lib;
INIT_LOGGER("ContactItem");
+namespace chronos{
+
ContactItem::ContactItem(const EndorseCertificate& selfEndorseCertificate,
bool isIntroducer,
const string& alias)
@@ -29,10 +30,9 @@
m_namespace = endorsedkeyName.getSubName(0, endorsedkeyName.size() - 1);
- const ProfileData& profileData = selfEndorseCertificate.getProfileData();
- m_name = profileData.getProfile().getProfileEntry("name");
+ m_name = selfEndorseCertificate.getProfile().get("name");
m_alias = alias.empty() ? m_name : alias;
- m_institution = profileData.getProfile().getProfileEntry("institution");
+ m_institution = selfEndorseCertificate.getProfile().get("institution");
}
ContactItem::ContactItem(const ContactItem& contactItem)
@@ -43,16 +43,6 @@
, m_institution(contactItem.m_institution)
, m_isIntroducer(contactItem.m_isIntroducer)
, m_trustScope(contactItem.m_trustScope)
- , m_trustScopeName(contactItem.m_trustScopeName)
{}
-bool
-ContactItem::canBeTrustedFor(const Name& name)
-{
- vector<shared_ptr<Regex> >::iterator it = m_trustScope.begin();
-
- for(; it != m_trustScope.end(); it++)
- if((*it)->match(name))
- return true;
- return false;
}