paypro: remove all references of KJUR.

This commit is contained in:
Christopher Jeffrey 2014-07-21 13:36:15 -07:00
parent 2741f7509f
commit 86efcbed1b
1 changed files with 0 additions and 3 deletions

View File

@ -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, '')]) {