In encodeSignedInfo, implement timestamp
diff --git a/ndn-cpp/c/encoding/BinaryXMLContentObject.c b/ndn-cpp/c/encoding/BinaryXMLContentObject.c
index 29b2065..c9104ff 100644
--- a/ndn-cpp/c/encoding/BinaryXMLContentObject.c
+++ b/ndn-cpp/c/encoding/BinaryXMLContentObject.c
@@ -69,7 +69,9 @@
if (error = ndn_encodeBinaryXMLPublisherPublicKeyDigest(&signedInfo->publisherPublicKeyDigest, encoder))
return error;
- // TODO: Implement timeStamp
+ if (error = ndn_BinaryXMLEncoder_writeOptionalTimeMillisecondsDTagElement
+ (encoder, ndn_BinaryXML_DTag_Timestamp, signedInfo->timestampMilliseconds))
+ return error;
if (signedInfo->type != ndn_ContentType_DATA) {
// Not the default of DATA, so we need to encode the type.