]> git.ipfire.org Git - thirdparty/openvpn.git/commit - src/openvpn/options.h
Implement AUTH_FAIL, TEMP message support
authorArne Schwabe <arne@rfc2549.org>
Wed, 14 Sep 2022 17:01:34 +0000 (19:01 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 20 Sep 2022 12:26:04 +0000 (14:26 +0200)
commitc9474fa316a6f73286ed97b36c8f8b1ba62141bd
treeef714ecbc9dde5751f87ea207570854724332693
parent179b3728b71013413885e453e477997f5a396f78
Implement AUTH_FAIL, TEMP message support

This allows a server to indicate a temporary problem on the server and
allows the server to indicate how to proceed (i.e. move to the next server,
retry the same server, wait a certain time,...)

This adds options_utils.c/h to be able to unit test the new function.

Patch v2: Improve documentation, format man page better, comment that
          protocol-flags is not a user usable option.

Patch v3: cleanup parse_auth_failed_temp to use a simple const string
          instead of a buffer

Patch v4: move message + strlen(TEMP) to caller

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Heiko Hund <heiko@ist.eigentlich.net>
Message-Id: <20220914170134.2659433-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25210.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
12 files changed:
doc/man-sections/script-options.rst
src/openvpn/Makefile.am
src/openvpn/init.c
src/openvpn/openvpn.vcxproj
src/openvpn/options.h
src/openvpn/options_util.c [new file with mode: 0644]
src/openvpn/options_util.h [new file with mode: 0644]
src/openvpn/push.c
src/openvpn/ssl.c
src/openvpn/ssl.h
tests/unit_tests/openvpn/Makefile.am
tests/unit_tests/openvpn/test_misc.c