]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add function for common env setting of verify user/pass calls
authorArne Schwabe <arne@rfc2549.org>
Mon, 5 Oct 2020 11:16:14 +0000 (13:16 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 11 Oct 2020 17:41:18 +0000 (19:41 +0200)
commita4eeef17b20541a7afde0f1cbeae4a4e2b0c455a
tree9f876666ce1bb84dc47cc17053cb5ac9e56256f6
parenta480eaae1d32a6c3970911a561a64c1019944f92
Add function for common env setting of verify user/pass calls

This removes the code duplication in verify_user_pass_script,
verify_user_pass_plugin and verify_user_pass_management.

This also fixes a bug that username is not set if auth-gen-token is
used without the external-auth flag as without calling any external auth
method, the environment would not be setup for connect-client calls.

This patch also removes an indentation level in most of touched functions
so diffing without whitespaces is recommended for review.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20201005111614.29325-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21174.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_verify.c