]> git.ipfire.org Git - thirdparty/openvpn.git/commit
client-connect: Refactor to use return values instead of modifying a passed-in flag
authorFabian Knittel <fabian.knittel@lettink.de>
Sat, 11 Jul 2020 09:36:46 +0000 (11:36 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 15 Jul 2020 12:33:22 +0000 (14:33 +0200)
commit4f29b73b168904a764151f1acef0ea73c0fcece1
treece16350d6073757a8f118aff84d608bcae7c5e7f
parent380a142a6b397e615ef809a94c5e6be7fcddad06
client-connect: Refactor to use return values instead of modifying a passed-in flag

This patch changes the way the client-connect helper functions communicate
with the main function.  Instead of updating cc_succeeded and cc_succeeded_count,
they now return either CC_RET_SUCCEEDED, CC_RET_FAILED or CC_RET_SKIPPED.

In addition, the client-connect helpers are now called in completely
identical ways.  This is in preparation of handling the helpers as simple
call-backs.

Signed-off-by: Fabian Knittel <fabian.knittel@lettink.de>
Patch V5: Minor style fixes

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