DER encoding: Added CertificateDataVisitor and use in Certificate::decode.
diff --git a/ndn-cpp/encoding/der/der.cpp b/ndn-cpp/encoding/der/der.cpp
index 419ffae..e569819 100644
--- a/ndn-cpp/encoding/der/der.cpp
+++ b/ndn-cpp/encoding/der/der.cpp
@@ -213,7 +213,7 @@
return size_ + header_.size();
}
-shared_ptr<vector<uint8_t> >
+Blob
DerComplex::getRaw()
{
shared_ptr<vector<uint8_t> > blob(new vector<uint8_t>());
@@ -221,7 +221,7 @@
DerNodePtrList::iterator it = nodeList_.begin();
for (; it != nodeList_.end(); it++) {
- shared_ptr<vector<uint8_t> > childBlob = (*it)->getRaw();
+ Blob childBlob = (*it)->getRaw();
blob->insert(blob->end(), childBlob->begin(), childBlob->end());
}
return blob;