ccnx: Added verifier and a few small changes
Change-Id: Idbdc0597bd9afb3cfa7c7bbc05175ca8aa1c6b1b
diff --git a/ccnx/ccnx-key.cc b/ccnx/ccnx-key.cc
index 19dc84d..c3fdf10 100644
--- a/ccnx/ccnx-key.cc
+++ b/ccnx/ccnx-key.cc
@@ -58,8 +58,8 @@
TiXmlElement *root = doc.RootElement();
for (TiXmlElement *child = root->FirstChildElement(); child; child = child->NextSiblingElement())
{
- const char *elemName = child->Value();
- const char *text = child->GetText();
+ string elemName = child->Value();
+ string text = child->GetText();
if (elemName == "Name")
{
m_meta.realworldID = text;
@@ -70,7 +70,7 @@
}
else if (elemName == "Valid_to")
{
- m_meta.validTo = boost::lexical_cast<time_t>(std::string(text));
+ m_meta.validTo = boost::lexical_cast<time_t>(text);
}
else if (elemName == "Valid_from")
{
@@ -109,7 +109,7 @@
return EXPIRED;
}
- return VALID;
+ return WITHIN_VALID_TIME_SPAN;
}
} // Ccnx