mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
remove x/crypto fork
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -996,8 +996,7 @@ func (c *sftpConnection) openConnNoLock() error {
|
||||
supportedAlgos := ssh.SupportedAlgorithms()
|
||||
insecureAlgos := ssh.InsecureAlgorithms()
|
||||
// add all available ciphers, KEXs and MACs, they are negotiated according to the order
|
||||
clientConfig.Ciphers = append(supportedAlgos.Ciphers, ssh.InsecureCipherAES128CBC,
|
||||
ssh.InsecureCipherAES192CBC, ssh.InsecureCipherAES256CBC)
|
||||
clientConfig.Ciphers = append(supportedAlgos.Ciphers, ssh.InsecureCipherAES128CBC)
|
||||
clientConfig.KeyExchanges = append(supportedAlgos.KeyExchanges, insecureAlgos.KeyExchanges...)
|
||||
clientConfig.MACs = append(supportedAlgos.MACs, insecureAlgos.MACs...)
|
||||
sshClient, err := ssh.Dial("tcp", c.config.Endpoint, clientConfig)
|
||||
|
||||
Reference in New Issue
Block a user