Add logging of exceptions in verifySignature.
authorEdward Lee <edilee@mozilla.com>
Thu, 21 Oct 2010 12:58:52 -0700
changeset 19 19abc9233526b3510c1172fea75e97a914e27b32
parent 18 74750ab49c3ce914e3fcd4064dcb95b5d37231e2
child 20 a10d3c3c8301f7cb25287f287fc4c77317ff48e4
push id20
push useredward.lee@engineering.uiuc.edu
push dateThu, 21 Oct 2010 19:59:02 +0000
Add logging of exceptions in verifySignature.
bootstrap.js
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -290,16 +290,17 @@ XPCOMUtils.defineLazyGetter(this, "check
     return new nss_t.SECItem(nss.SIBUFFER, outputData, outputData.length);
   }
 
   return function checkSignature(message, signature) {
     try {
       return verify(message, signature, ENCODED_PUBKEY);
     }
     catch(ex) {
+      Cu.reportError("Sigma verify exception! " + ex);
       return false;
     }
   };
 });
 
 /**
  * Fetch the json manifest and install/uninstall if necessary
  */