]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Remove auth_user_pass.wait_for_push variable
authorArne Schwabe <arne@rfc2549.org>
Wed, 2 Dec 2020 11:59:28 +0000 (12:59 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 2 Dec 2020 13:00:34 +0000 (14:00 +0100)
commitdfd624b52bce7ddd0eeaab516df9848e432f3242
tree517b0a34e8c045a3c90a8672bf14449db3f9e6c9
parentfb789947ab1eba3e68fb8e4b3551d095a53962bd
Remove auth_user_pass.wait_for_push variable

This variable was first introduce in earlier attempt to fix the
auth-token problems with auth-nocache before user_password and
auth_token were split into two variables. The idea of the variable it
is being set if --pull is in use. However the variable was not always
set correctly, especially if username/password are queried after an
expired auth-token. Instead using that variable use session->opt->pull
directly.

Patch V2: rename delayed_auth_pass_purge to ssl_clean_user_pass to give
          a more fitting name since this function is not only used in
          the delayed code path and also the new name aligns with
          ssl_clean_auth_token. Also fix a leftover wait_for_push
          in that function

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20201202115928.16615-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21297.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c
src/openvpn/manage.c
src/openvpn/misc.h
src/openvpn/ssl.c
src/openvpn/ssl.h