Skip to content

parseKey can return array #766

@thompsa

Description

@thompsa

As of v0.3.0 of ssh2_streams the utils.parseKey function may return an array of key objects, rather than the object itself.

./node_modules/ssh2/lib/server.js:49
if (privateKey.getPrivatePEM() === null)
^

TypeError: privateKey.getPrivatePEM is not a function
at new Server (./node_modules/ssh2/lib/server.js:49:20)
at Object. (./index.js:11:1)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3

ssh2 needs to catch up with the API change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions