Skip to content

Commit

Permalink
Move tls_process_state into its own function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
schwabe authored and cron2 committed Apr 26, 2022
1 parent 4dbe508 commit 9a7b95f
Showing 1 changed file with 227 additions and 215 deletions.
Loading

0 comments on commit 9a7b95f

Please sign in to comment.