paypro: remove all references of KJUR.
This commit is contained in:
parent
2741f7509f
commit
86efcbed1b
|
@ -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…
Reference in New Issue