chiark / gitweb /
site: When if our MSG5s (or peer's MSG6s) get lost, preserve the key
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 21 Jun 2012 02:06:19 +0000 (03:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Jul 2012 19:02:22 +0000 (20:02 +0100)
When we time out in state SENTMSG5, keep the key we negotiated.
SENTMSG5 gives the peer permission to start sending packets with it so
we need to be able to decrypt them.  If we see such packets, we switch
to using the new key at that point and throw the old key away.

This is the final fix to the "connectivity loss during final key
setup can cause locked-up session" bug.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>

No differences found