Skip to content

Commit

Permalink
Merge pull request #1644 from cocobear/10241-fix-ssh-key-negotiation
Browse files Browse the repository at this point in the history
Author: cocobear
Reviewer: adiroiban
Fixes: ticket:10241

SSHTransportBase.ssh_KEXINIT now uses the remote peer preferred MAC list for negotiation. In previous versions it was only using the local preferred MAC list
  • Loading branch information
adiroiban committed Dec 5, 2021
2 parents a8aae68 + defe8b2 commit dee676b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/twisted/conch/ssh/transport.py
Expand Up @@ -882,7 +882,7 @@ def ssh_KEXINIT(self, packet):
) = (s.split(b",") for s in strings)
# These are the server directions
outs = [encSC, macSC, compSC]
ins = [encCS, macSC, compCS]
ins = [encCS, macCS, compCS]
if self.isClient:
outs, ins = ins, outs # Switch directions
server = (
Expand Down
2 changes: 2 additions & 0 deletions src/twisted/newsfragments/10241.bugfix
@@ -0,0 +1,2 @@
SSHTransportBase.ssh_KEXINIT now uses the remote peer preferred MAC list for negotiation. In previous versions it was only using the local preferred MAC list.

0 comments on commit dee676b

Please sign in to comment.