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)
commitbd98cd6bd47584447fcbf84f72ee9388f36ebb8c
tree0ba7b4628205d5eeab4f9696ed731a386d92ecd7
parent02b0959b82910224e40025e06c01b59b65340c93
site: When if our MSG5s (or peer's MSG6s) get lost, preserve the key

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>
site.c