]> git.ipfire.org Git - thirdparty/openvpn.git/commit
client-connect: Split multi_connection_established into separate functions
authorFabian Knittel <fabian.knittel@lettink.de>
Sat, 11 Jul 2020 09:36:43 +0000 (11:36 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 14 Jul 2020 08:45:47 +0000 (10:45 +0200)
commit0c8c50ca93392e1d0534ac35637899e0017863b9
tree53280b49ddf49f965df21ae70e8dc6d1afcb463b
parentb15fcceb1dd8b4fc2bf89deff94832f2654c3ac3
client-connect: Split multi_connection_established into separate functions

This patch splits up the multi_connection_established() function.  Each new
helper function does a specific job.  Functions that do a similar job
receive a similar calling interface.

The patch tries not to reindent code, so that the real changes are as
clearly visible as possible.  (A follow-up patch will only do indentation
changes.)

Signed-off-by: Fabian Knittel <fabian.knittel@lettink.de>
PATCH v3: Since the code has changed enough from the time the original
patch to the current master, the splitting has been redone from the
current code.  Also some style and minor code changes have been added
doing this patch.  This and the big reformatting done before eliminates
the follow up patch with only indentation changes.

The original patch already replaced some instances of
option_permission_mask with CLIENT_CONNECT_OPT_MASK. The V3 version does
this more consistently.

Patch v4: Move config -> mi->cc_config into its own commit

Patch v5: Clean up some minor issues, add one missing check on
temporary file deletion, rebase on latest master.

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