Skip to content

Commit 3e83664

Browse files
authored
node-sshpk#27 prep for release (#79)
Reviewed by: Dan McDonald <[email protected]>
1 parent 1da5a87 commit 3e83664

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Get md2man-roff from <https://github.com/sunaku/md2man>
2121
MD2MAN := md2man-roff
2222
NPM_EXEC := npm
23-
TAP := ./node_modules/.bin/tape
23+
TAP := ./node_modules/tape/bin/tape
2424

2525
#
2626
# Files

deps/javascriptlint

lib/formats/putty.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ function read(buf, options) {
2727
if (parts) {
2828
formatVersion = {
2929
'putty-user-key-file-2': 2,
30-
'putty-user-key-file-3': 3,
31-
}[parts[0].toLowerCase()]
30+
'putty-user-key-file-3': 3
31+
}[parts[0].toLowerCase()];
3232
if (formatVersion) {
3333
found = true;
3434
break;
@@ -78,7 +78,8 @@ function read(buf, options) {
7878
lines.slice(si, si + privateLines).join(''), 'base64');
7979

8080
if (encryption !== 'none' && formatVersion === 3) {
81-
throw new Error('Encrypted keys arenot supported for PuTTY format version 3');
81+
throw new Error('Encrypted keys arenot supported for' +
82+
' PuTTY format version 3');
8283
}
8384

8485
if (encryption === 'aes256-cbc') {
@@ -116,7 +117,7 @@ function read(buf, options) {
116117
{ name: 'q', data: sshbuf.readBuffer() },
117118
{ name: 'iqmp', data: sshbuf.readBuffer() }
118119
];
119-
} else if (alg.startsWith('ecdsa-sha2-nistp')) {
120+
} else if (alg.match(/^ecdsa-sha2-nistp/)) {
120121
privateKeyParts = [ {
121122
name: 'd', data: sshbuf.readBuffer()
122123
} ];

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sshpk",
3-
"version": "1.16.1",
3+
"version": "1.17.0",
44
"description": "A library for finding and using SSH public keys",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)