Skip to content

Commit

Permalink
Style fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Feb 3, 2017
1 parent d96e4d7 commit 1188961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/x509.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ pki.certificateFromAsn1 = function(obj, computeHash) {

// get oid
var oid = asn1.derToOid(capture.publicKeyOid);
if(oid !== pki.oids['rsaEncryption']) {
if(oid !== pki.oids.rsaEncryption) {
throw new Error('Cannot read public key. OID is not RSA.');
}

Expand Down

0 comments on commit 1188961

Please sign in to comment.