From: Razvan Cojocaru Date: Wed, 23 Oct 2024 16:49:03 +0300 Message-ID: <20241023134903.66485-1-rzvncj@...277...> MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH] Allow setting an empty auth-token in push replies List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net This in turn allows the server to signal to the client that it should no longer attempt to reconnect, if it wants to keep the client out after an AUTH_FAILED. Signed-off-by: Razvan Cojocaru --- src/openvpn/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openvpn/misc.c b/src/openvpn/misc.c index 70ba5e4d..82ac8056 100644 --- a/src/openvpn/misc.c +++ b/src/openvpn/misc.c @@ -524,6 +524,11 @@ set_auth_token(struct user_pass *tk, const char *token) } protect_user_pass(tk); } + else + { + tk->defined = false; + tk->token_defined = false; + } } void -- 2.47.0