Allow user to disable content verification
diff --git a/js/NDN.js b/js/NDN.js
index 5c8df13..90d266c 100644
--- a/js/NDN.js
+++ b/js/NDN.js
@@ -28,6 +28,7 @@
this.host = (settings.host !== undefined ? settings.host : 'localhost');
this.port = (settings.port || 9696);
this.readyStatus = NDN.UNOPEN;
+ this.verify = (settings.verify !== undefined ? settings.verify : true);
// Event handler
this.onopen = (settings.onopen || function() { if (LOG > 3) console.log("NDN connection established."); });
this.onclose = (settings.onclose || function() { if (LOG > 3) console.log("NDN connection closed."); });
@@ -274,7 +275,13 @@
clearTimeout(pitEntry.timerID);
//console.log("Clear interest timer");
//console.log(currentClosure.timerID);
-
+
+ if (this.verify == false) {
+ // Pass content up without verifying the signature
+ currentClosure.upcall(Closure.UPCALL_CONTENT_UNVERIFIED, new UpcallInfo(this, null, 0, co));
+ return;
+ }
+
// Key verification
// Recursive key fetching & verification closure