]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix auth-token not being updated if auth-nocache is set
authorArne Schwabe <arne@rfc2549.org>
Mon, 30 Nov 2020 12:39:28 +0000 (13:39 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 30 Nov 2020 15:43:01 +0000 (16:43 +0100)
commit95e183723fc6571c73ed070b22923df2ce666af2
treeae1f9e9c7393bf8c431d6af702b1de57acfbbcd5
parentbbac1542cfb4a9d3033999b26813f0dd0618c3f0
Fix auth-token not being updated if auth-nocache is set

This fixes the auth-token not being updated if auth-nocache is set. Our
set_auth_token method ensures that the auth-token always has a username
but is a little bit too strict in the check.

Also add doxygen documentation and remove null checks. We use this function
only with non-null pointers and it makes it a bit nicer to read.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20201130123928.21837-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21291.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit fb789947ab1eba3e68fb8e4b3551d095a53962bd)
src/openvpn/misc.c
src/openvpn/misc.h