Browse Source

paypro: remove all references of KJUR.

patch-2
Christopher Jeffrey 11 years ago
parent
commit
86efcbed1b
  1. 3
      lib/PayPro.js

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

Loading…
Cancel
Save