0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
openvpn3/openvpn/win
Lev Stipakov e34094e30d Refactor reauthentication logic
The reauthentication logic differs from openvpn2
and the code is a bit hard to follow. Simplify
the code and make it behave like in openvpn2.

 - password is cached by default

 - password is purged when auth-nocache is presented in a local config or pushed

 - when AUTH_FAILED is received and we have no session-id, throw a fatal error

 - when AUTH_FAILED is received and user interaction is required for
   authentication (MFA), throw a fatal error

 - when AUTH_FAILED is received, user interaction is not required
   for authentication and either we have a cached password OR password is not
   needed, we reconnect.

Password is "needed" when non-empty password is provided.

User interaction is required for static/dynamic challenge and SAML.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2024-05-08 16:39:24 +00:00
..
call.hpp Remove support for pre-Vista Windows versions 2023-04-20 17:44:14 +02:00
cmd.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
console.hpp cli.cpp: implement get_password() on Windows 2023-04-19 18:47:48 +03:00
event.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
handle.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
handlecomm.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
impersonate.hpp Make all C++ source code files have LF (Unix) line endings 2023-04-24 17:16:58 +02:00
logfile.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
logutil.hpp WriteFile takes DWORD, not size_t 2023-09-28 11:33:46 +02:00
modname.hpp Refactor reauthentication logic 2024-05-08 16:39:24 +00:00
npinfo.hpp Remove support for pre-Vista Windows versions 2023-04-20 17:44:14 +02:00
reg.hpp Make all C++ source code files have LF (Unix) line endings 2023-04-24 17:16:58 +02:00
scoped_handle.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
secattr.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
sleep.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
unicode.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
winerr.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00
winsvc.hpp Reformatting source code to new coding style 2023-01-18 19:24:15 +01:00