Descriptiongo.crypto/ssh: never negotiate unsupported ciphers
Fixes issue 4285.
Adding a new cipher that is supported by the remote end, but not supported by our client causes that cipher to be considered a valid candidate. This fails later in setupKeys when there is no cipherModes configuration.
In summary, unsupported ciphers cannot be willed into existence by adding them to the client config. This change enforces this.
Patch Set 1 #Patch Set 2 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #Patch Set 3 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #Patch Set 4 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #Patch Set 5 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #Patch Set 6 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #Patch Set 7 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #Patch Set 8 : diff -r ffee30e1c207 https://code.google.com/p/go.crypto #
MessagesTotal messages: 4
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||