From 86efcbed1bf996af8776447ce1b2884d5d0b38c0 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 21 Jul 2014 13:36:15 -0700 Subject: [PATCH] paypro: remove all references of KJUR. --- lib/PayPro.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/PayPro.js b/lib/PayPro.js index 4681787..a9e8f37 100644 --- a/lib/PayPro.js +++ b/lib/PayPro.js @@ -2,7 +2,6 @@ var protobufjs = protobufjs || require('protobufjs/dist/ProtoBuf'); var Message = Message || require('./Message'); -// var KJUR = require('jsrsasign'); var RootCerts = require('./RootCerts'); // BIP 70 - payment protocol @@ -251,7 +250,6 @@ PayPro.prototype.x509Sign = function(key) { var trusted = [].concat(pki_data).every(function(cert) { var der = cert.toString('hex'); - // var pem = KJUR.asn1.ASN1Util.getPEMStringFromHex(der, 'CERTIFICATE'); var pem = self._DERtoPEM(der, 'CERTIFICATE'); return !!RootCerts[pem.replace(/\s+/g, '')]; }); @@ -282,7 +280,6 @@ PayPro.prototype.x509Verify = function() { return [].concat(pki_data).every(function(cert) { var der = cert.toString('hex'); - // var pem = KJUR.asn1.ASN1Util.getPEMStringFromHex(der, 'CERTIFICATE'); var pem = self._DERtoPEM(der, 'CERTIFICATE'); if (!RootCerts[pem.replace(/\s+/g, '')]) {