mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-11 20:01:53 +00:00
.github
.vscode
app
build
docs
extras
locale
patches
app-builder-lib+23.3.3.patch
ssh2+1.11.0.patch
scripts
snap
tabby-community-color-schemes
tabby-core
tabby-electron
tabby-linkifier
tabby-local
tabby-plugin-manager
tabby-serial
tabby-settings
tabby-ssh
tabby-telnet
tabby-terminal
tabby-uac
tabby-web
tabby-web-demo
web
.all-contributorsrc
.editorconfig
.eslintrc.yml
.gitignore
.mergify.yml
.pug-lintrc.js
CODE_OF_CONDUCT.md
HACKING.md
LICENSE
README.de-DE.md
README.id-ID.md
README.it-IT.md
README.ja-JP.md
README.ko-KR.md
README.md
README.ru-RU.md
README.zh-CN.md
electron-builder.yml
firebase.json
package.json
tsconfig.json
typedoc.js
webpack.config.js
webpack.plugin.config.js
yarn.lock
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
diff --git a/node_modules/ssh2/lib/protocol/keyParser.js b/node_modules/ssh2/lib/protocol/keyParser.js
|
|
index 9860e3f..ee82e51 100644
|
|
--- a/node_modules/ssh2/lib/protocol/keyParser.js
|
|
+++ b/node_modules/ssh2/lib/protocol/keyParser.js
|
|
@@ -15,6 +15,7 @@ const {
|
|
sign: sign_,
|
|
verify: verify_,
|
|
} = require('crypto');
|
|
+const { createVerify: createVerifyDSS } = require('browserify-sign')
|
|
const supportedOpenSSLCiphers = getCiphers();
|
|
|
|
const { Ber } = require('asn1');
|
|
@@ -404,6 +405,17 @@ const BaseKey = {
|
|
return new Error('No public key available');
|
|
if (!algo || typeof algo !== 'string')
|
|
algo = this[SYM_HASH_ALGO];
|
|
+
|
|
+ if (algo === 'dss1') {
|
|
+ const verifier = createVerifyDSS('DSA-SHA1');
|
|
+ verifier.update(data);
|
|
+ try {
|
|
+ return verifier.verify(pem, signature);
|
|
+ } catch (ex) {
|
|
+ return ex;
|
|
+ }
|
|
+ }
|
|
+
|
|
try {
|
|
return verify_(algo, data, pem, signature);
|
|
} catch (ex) {
|
|
@@ -1343,7 +1355,7 @@ function parseDER(data, baseType, comment, fullType) {
|
|
return new Error('Malformed OpenSSH public key');
|
|
pubPEM = genOpenSSLDSAPub(p, q, g, y);
|
|
pubSSH = genOpenSSHDSAPub(p, q, g, y);
|
|
- algo = 'sha1';
|
|
+ algo = 'dss1';
|
|
break;
|
|
}
|
|
case 'ssh-ed25519': {
|