Use buffer for freshContent
diff --git a/ndn-cpp/key-chain.cpp b/ndn-cpp/key-chain.cpp
index f70f77b..fbfc647 100644
--- a/ndn-cpp/key-chain.cpp
+++ b/ndn-cpp/key-chain.cpp
@@ -85,6 +85,9 @@
data.getSignature().getSignature().clear();
unsigned char dataFieldsDigest[SHA256_DIGEST_LENGTH];
digestDataFieldsSha256(data, dataFieldsDigest);
+#if 1
+ data.getSignature().setSignature(dataFieldsDigest, sizeof(dataFieldsDigest));
+#endif
// TODO: use RSA_size to get the proper size of the signature buffer.
unsigned char signature[1000];
unsigned int signatureLength;