-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #386 from uProxy/trevj-ssh2-0.5.0
migrate to ssh2 0.5+
- Loading branch information
Showing
8 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// brorand alias which works in a freedomjs module context. | ||
// Uses randombytes, for which we have an alias which works | ||
// for Firefox. | ||
|
||
const randombytes = require('randombytes'); | ||
|
||
module.exports = function rand(len) { | ||
return randombytes(len); | ||
}; | ||
|
||
function Rand(fallback) { | ||
// no-op: always use randombytes | ||
} | ||
module.exports.Rand = Rand; | ||
|
||
Rand.prototype.generate = function generate(len) { | ||
return randombytes(len); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Monkey patch for browserify's process shim, for ssh2-streams. | ||
|
||
// Node.js 4.2 is an LTS release and, very roughly, is what the | ||
// browserify shims, e.g. Buffer, provide. | ||
process.version = '4.2.0'; | ||
|
||
process.binding = function() { | ||
return {}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters