]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Rename TM_UNTRUSTED to TM_INITIAL, always start session in TM_INITIAL rather than...
authorArne Schwabe <arne@rfc2549.org>
Sat, 24 Dec 2022 19:42:45 +0000 (20:42 +0100)
committerGert Doering <gert@greenie.muc.de>
Sat, 24 Dec 2022 21:47:25 +0000 (22:47 +0100)
commit9828c7045a27e7dc5e6f430798323a1abd003fbf
tree34ae9c55c8d495bb832c3c99ac67d74cf4b64abb
parent07cb7f69df3faacd376e3d1077b6e51ba2fadf23
Rename TM_UNTRUSTED to TM_INITIAL, always start session in TM_INITIAL rather than TM_ACTIVE or TM_INITIAL

Currently we start new session in TM_ACTIVE or TM_INITIAL depending if
we already have an active session in TM_ACTIVE or not.

With this change, all session will be started in TM_INITIAL both initiated
by a peer but also session by ourselves. This simplifies state transitions
and eliminates the wacky state transition that when we have a failed
reneogitiation (and move TM_ACTIVE to TM_LAME_DUCK) that a new session of
a peer starts in TM_ACTIVE rather than TM_INITIAL

This is a squash of two mailing list patches:

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20221224194253.3202231-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25798.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20221224194253.3202231-3-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25795.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 7dcde87b7a4323ffb173576d4559e14fcfe4e627)
src/openvpn/mudp.c
src/openvpn/ssl.c
src/openvpn/ssl.h
src/openvpn/ssl_common.h