]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Move tls_process_state into its own function
authorArne Schwabe <arne@rfc2549.org>
Fri, 22 Apr 2022 14:29:39 +0000 (16:29 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 26 Apr 2022 14:59:59 +0000 (16:59 +0200)
commit9a7b95fda56127df6de6fe7c60e08fb5b67a9919
tree5647567fa372e6eb4689c801a5f0b66bcfcb5e0a
parent4dbe508ab6d011d57f4acc71f3c0330deb852206
Move tls_process_state into its own function

This function does most of the state transitions in the TLS state
machine. Moving it into its own function removes an intention area and
makes tls_process function easier to understand as the loop is more
obvious.

This is largely just a code move with small expection. bool active is
no longer directly set but inferred from to_link->len

Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20220422142953.3805364-5-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24157.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c