]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Make key_state->authenticated more state machine like
authorArne Schwabe <arne@rfc2549.org>
Thu, 9 Jul 2020 10:15:57 +0000 (12:15 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 9 Jul 2020 16:02:58 +0000 (18:02 +0200)
commit5608041c7b343fbcd2d3317a8a49f43cb168a390
tree4b0f59174f149503c4e5600bfd42909d18e3abf6
parent2b09c1405fdfffe15b2b444b15cce7820263a048
Make key_state->authenticated more state machine like

This order the states from unauthenticated to authenticated and also
changes the comparison for KS_AUTH_FALSE from != to >

It also add comments and documents part using the state machine
better.

Remove a now obsolete comment and two obsolete ifdefs. While
keeping the ifdef in ssl_verify would save a few bytes of code,
this is too minor to justify keeping the ifdef

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Antonio Quartulli <antonio@openvpn.net>
Message-Id: <20200709101603.11941-2-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20258.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/multi.c
src/openvpn/ssl.c
src/openvpn/ssl_common.h
src/openvpn/ssl_verify.c