Added setPublisherPublicKeyDigest which takes a blob.
diff --git a/ndn-cpp/publisher-public-key-digest.hpp b/ndn-cpp/publisher-public-key-digest.hpp
index 7ce6dc7..9a31816 100644
--- a/ndn-cpp/publisher-public-key-digest.hpp
+++ b/ndn-cpp/publisher-public-key-digest.hpp
@@ -62,6 +62,23 @@
{
publisherPublicKeyDigest_ = Blob(publisherPublicKeyDigest, publisherPublicKeyDigestLength);
}
+
+ /**
+ * Set the publisher public key digest to point to an existing byte array. IMPORTANT: After calling this,
+ * if you keep a pointer to the array then you must treat the array as immutable and promise not to change it.
+ * @param signature A pointer to a vector with the byte array. This takes another reference and does not copy the bytes.
+ */
+ void
+ setPublisherPublicKeyDigest(const ptr_lib::shared_ptr<std::vector<unsigned char> > &publisherPublicKeyDigest)
+ {
+ publisherPublicKeyDigest_ = publisherPublicKeyDigest;
+ }
+
+ void
+ setPublisherPublicKeyDigest(const ptr_lib::shared_ptr<const std::vector<unsigned char> > &publisherPublicKeyDigest)
+ {
+ publisherPublicKeyDigest_ = publisherPublicKeyDigest;
+ }
/**
* Clear the publisherPublicKeyDigest.