]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Move pre decrypt lite check to its own function
authorArne Schwabe <arne@rfc2549.org>
Mon, 25 Apr 2022 12:27:09 +0000 (14:27 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 25 Apr 2022 13:47:52 +0000 (15:47 +0200)
commit73713debf56c06ed54a378f9b3d1d742c5f1ed45
tree1f5d58b4a3f2fac2baf0d5ef73ad1fc565afa931
parentdc6e00e2e75eae58bf94bcf384ae2ba68c5c6bd3
Move pre decrypt lite check to its own function

This prepares for extending this function with the HMAC based session ID
check.

Replace the check for m->top.c2.tls_auth_standalone with an ASSERT as this
code path is only used in multi udp server and OpenVPN initialises the
tls_auth_standalone always for the TOP context (CF_INIT_TLS_AUTH_STANDALONE),
even for the tcp m2mp server that does not use it).

Patch v2: replace if with ASSERT

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20220425122709.4148015-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24193.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/mudp.c