add check of verification for content
Change-Id: If3404c76bb001fb65ebb9a231020bc7a319a0142
diff --git a/ccnx/ccnx-pco.cpp b/ccnx/ccnx-pco.cpp
index 2c4e351..591f1d3 100644
--- a/ccnx/ccnx-pco.cpp
+++ b/ccnx/ccnx-pco.cpp
@@ -34,22 +34,26 @@
{
boost::throw_exception(MisformedContentObjectException());
}
+
}
-ParsedContentObject::ParsedContentObject(const unsigned char *data, size_t len)
+ParsedContentObject::ParsedContentObject(const unsigned char *data, size_t len, bool verified)
: m_comps(NULL)
+ , m_verified(verified)
{
init(data, len);
}
-ParsedContentObject::ParsedContentObject(const Bytes &bytes)
+ParsedContentObject::ParsedContentObject(const Bytes &bytes, bool verified)
: m_comps(NULL)
+ , m_verified(verified)
{
init(head(bytes), bytes.size());
}
-ParsedContentObject::ParsedContentObject(const ParsedContentObject &other)
+ParsedContentObject::ParsedContentObject(const ParsedContentObject &other, bool verified)
: m_comps(NULL)
+ , m_verified(verified)
{
init(head(other.m_bytes), other.m_bytes.size());
}