mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-10 06:20:03 +00:00
now DEFINITELY re-added AES-GCM
This commit is contained in:
parent
937243a9d9
commit
da089fc46a
@ -1,6 +1,12 @@
|
|||||||
import * as ALGORITHMS from 'ssh2/lib/protocol/constants'
|
import * as ALGORITHMS from 'ssh2/lib/protocol/constants'
|
||||||
import { ALGORITHM_BLACKLIST, SSHAlgorithmType } from './api'
|
import { ALGORITHM_BLACKLIST, SSHAlgorithmType } from './api'
|
||||||
|
|
||||||
|
// Counteracts https://github.com/mscdex/ssh2/commit/f1b5ac3c81734c194740016eab79a699efae83d8
|
||||||
|
ALGORITHMS.DEFAULT_CIPHER.push('aes128-gcm')
|
||||||
|
ALGORITHMS.DEFAULT_CIPHER.push('aes256-gcm')
|
||||||
|
ALGORITHMS.SUPPORTED_CIPHER.push('aes128-gcm')
|
||||||
|
ALGORITHMS.SUPPORTED_CIPHER.push('aes256-gcm')
|
||||||
|
|
||||||
export const supportedAlgorithms: Record<string, string> = {}
|
export const supportedAlgorithms: Record<string, string> = {}
|
||||||
|
|
||||||
for (const k of Object.values(SSHAlgorithmType)) {
|
for (const k of Object.values(SSHAlgorithmType)) {
|
||||||
|
@ -6,12 +6,6 @@ import { SSHTabComponent } from './components/sshTab.component'
|
|||||||
import { PasswordStorageService } from './services/passwordStorage.service'
|
import { PasswordStorageService } from './services/passwordStorage.service'
|
||||||
import { ALGORITHM_BLACKLIST, SSHAlgorithmType, SSHProfile } from './api'
|
import { ALGORITHM_BLACKLIST, SSHAlgorithmType, SSHProfile } from './api'
|
||||||
|
|
||||||
// Counteracts https://github.com/mscdex/ssh2/commit/f1b5ac3c81734c194740016eab79a699efae83d8
|
|
||||||
ALGORITHMS.DEFAULT_CIPHER.push('aes128-gcm')
|
|
||||||
ALGORITHMS.DEFAULT_CIPHER.push('aes256-gcm')
|
|
||||||
ALGORITHMS.SUPPORTED_CIPHER.push('aes128-gcm')
|
|
||||||
ALGORITHMS.SUPPORTED_CIPHER.push('aes256-gcm')
|
|
||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
export class SSHProfilesService extends ProfileProvider<SSHProfile> {
|
export class SSHProfilesService extends ProfileProvider<SSHProfile> {
|
||||||
id = 'ssh'
|
id = 'ssh'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user