model: Adding support for "fake" content object signatures
diff --git a/model/ndn-content-object.h b/model/ndn-content-object.h
index 78b6e69..9803efe 100644
--- a/model/ndn-content-object.h
+++ b/model/ndn-content-object.h
@@ -137,6 +137,23 @@
Time
GetFreshness () const;
+ /**
+ * @brief Set "fake" signature on the content object
+ * @param signature uint32_t number, simulating content object signature
+ *
+ * Values for the signature totally depend on the application
+ */
+ void
+ SetSignature (uint32_t signature);
+
+ /**
+ * @brief Get "fake" signature of the content object
+ *
+ * Values for the signature totally depend on the application
+ */
+ uint32_t
+ GetSignature () const;
+
//////////////////////////////////////////////////////////////////
static TypeId GetTypeId (void); ///< @brief Get TypeId
@@ -150,6 +167,7 @@
Ptr<Name> m_name;
Time m_freshness;
Time m_timestamp;
+ uint32_t m_signature; // 0, means no signature, any other value application dependent (not a real signature)
};
typedef ContentObject ContentObjectHeader;