major change: Add security support & Adjust GUI
Change-Id: I7abef37169dec1ef4b68e760dee5214c147c1915
diff --git a/src/validator-panel.h b/src/validator-panel.h
index 2bcc226..3b5f670 100644
--- a/src/validator-panel.h
+++ b/src/validator-panel.h
@@ -52,7 +52,10 @@
const ndn::OnInterestValidated& onValidated,
const ndn::OnInterestValidationFailed& onValidationFailed,
std::vector<ndn::shared_ptr<ndn::ValidationRequest> >& nextSteps)
- { onValidationFailed(interest.shared_from_this()); }
+ {
+ onValidationFailed(interest.shared_from_this(),
+ "No rules for interest.");
+ }
private:
int m_stepLimit;
@@ -62,11 +65,11 @@
};
-void
+inline void
ValidatorPanel::addTrustAnchor(const EndorseCertificate& cert)
{ m_trustAnchors[cert.getPublicKeyName()] = cert.getPublicKeyInfo(); }
-void
+inline void
ValidatorPanel::removeTrustAnchor(const ndn::Name& keyName)
{ m_trustAnchors.erase(keyName); }