DER encoding: Added CertificateDataVisitor and use in Certificate::decode.
diff --git a/ndn-cpp/encoding/der/der.hpp b/ndn-cpp/encoding/der/der.hpp
index a02a2e9..d8753be 100644
--- a/ndn-cpp/encoding/der/der.hpp
+++ b/ndn-cpp/encoding/der/der.hpp
@@ -17,6 +17,7 @@
#include <ndn-cpp/common.hpp>
#include <ndn-cpp/encoding/oid.hpp>
+#include <ndn-cpp/util/blob.hpp>
#include "visitor/visitor.hpp"
#include "visitor/void-visitor.hpp"
@@ -117,7 +118,7 @@
const DerType&
getType() { return type_; }
- virtual ptr_lib::shared_ptr<std::vector<uint8_t> >
+ virtual Blob
getRaw()
{
ptr_lib::shared_ptr<std::vector<uint8_t> > blob(new std::vector<uint8_t>());
@@ -179,7 +180,7 @@
DerNodePtrList&
getChildren() { return nodeList_; }
- virtual ptr_lib::shared_ptr<std::vector<uint8_t> >
+ virtual Blob
getRaw();
private: