sshpk
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -14,4 +14,10 @@ // Copyright 2015 Joyent, Inc. | ||
var PrivateKey = require('./private-key'); | ||
var edCompat = require('./ed-compat'); | ||
var edCompat; | ||
try { | ||
edCompat = require('./ed-compat'); | ||
} catch (e) { | ||
/* Just continue through, and bail out if we try to use it. */ | ||
} | ||
var InvalidAlgorithmError = errs.InvalidAlgorithmError; | ||
@@ -148,3 +154,3 @@ var KeyParseError = errs.KeyParseError; | ||
/* ED25519 is not supported by OpenSSL, use a javascript impl. */ | ||
if (this.type === 'ed25519') | ||
if (this.type === 'ed25519' && edCompat !== undefined) | ||
return (new edCompat.Verifier(this, hashAlgo)); | ||
@@ -151,0 +157,0 @@ if (this.type === 'curve25519') |
@@ -13,5 +13,11 @@ // Copyright 2015 Joyent, Inc. | ||
var utils = require('./utils'); | ||
var edCompat = require('./ed-compat'); | ||
var edCompat; | ||
var ed; | ||
try { | ||
edCompat = require('./ed-compat'); | ||
} catch (e) { | ||
/* Just continue through, and bail out if we try to use it. */ | ||
} | ||
var Key = require('./key'); | ||
@@ -136,3 +142,3 @@ | ||
/* ED25519 is not supported by OpenSSL, use a javascript impl. */ | ||
if (this.type === 'ed25519') | ||
if (this.type === 'ed25519' && edCompat !== undefined) | ||
return (new edCompat.Signer(this, hashAlgo)); | ||
@@ -139,0 +145,0 @@ if (this.type === 'curve25519') |
{ | ||
"name": "sshpk", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "A library for finding and using SSH public keys", | ||
@@ -33,3 +33,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
"node": ">=0.8.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
97578
2663