security: In IdentityCertificate, added publicKeyName_ and make getPublicKeyName just return it. Internally call setPublicKeyName as needed to set it. Make isCorrectName() check for "KEY".
diff --git a/src/encoding/der/visitor/print-visitor.cpp b/src/encoding/der/visitor/print-visitor.cpp
index cba5d2d..4c5ee64 100644
--- a/src/encoding/der/visitor/print-visitor.cpp
+++ b/src/encoding/der/visitor/print-visitor.cpp
@@ -78,7 +78,7 @@
PrintVisitor::visit(DerOid& derOid, ndnboost::any param)
{
const string& indent = ndnboost::any_cast<const string&>(param);
-
+
printData(derOid.getHeader(), indent);
printData(derOid.getPayload(), indent + " ");
@@ -88,7 +88,7 @@
PrintVisitor::visit(DerGtime& derGtime, ndnboost::any param)
{
const string& indent = ndnboost::any_cast<const string&>(param);
-
+
printData(derGtime.getHeader(), indent);
printData(derGtime.getPayload(), indent + " ");
}
@@ -103,7 +103,7 @@
const DerNodePtrList& children = derSequence.getChildren();
DerNodePtrList::const_iterator it = children.begin();
for(; it != children.end(); it++)
- (*it)->accept(*this, indent + " | ");
+ (*it)->accept(*this, indent + " | ");
}