]> 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:46:18 +0000 (22:46 +0100)
commit7dcde87b7a4323ffb173576d4559e14fcfe4e627
treeb15fe11417b741a57b8c344b5032e5735e3eb58b
parent80c5884886926094750366af57826cdb6f053fda
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>
src/openvpn/mudp.c
src/openvpn/ssl.c
src/openvpn/ssl.h
src/openvpn/ssl_common.h