aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/misc.h
diff options
context:
space:
mode:
authorLev Stipakov2024-03-29 11:37:39 +0100
committerGert Doering2024-03-29 12:08:21 +0100
commit4c71e816031f564f834df695b3fa717ea22720d2 (patch)
tree5c29c535ff28e7cd0fb28fac879f82abb34d5de0 /src/openvpn/misc.h
parenta94226cdc8ed037a6763675aa47e6c821983f174 (diff)
downloadopenvpn-4c71e816031f564f834df695b3fa717ea22720d2.zip
openvpn-4c71e816031f564f834df695b3fa717ea22720d2.tar.gz
misc.c: remove unused code
Commit 3a4fb1 "Ensure --auth-nocache is handled during renegotiation" has changed the behavior of set_auth_token(), but left unused parameter struct user_pass *up Remove this parameter and amend comments accordingly. Also remove unused function definition from misc.h. Signed-off-by: Lev Stipakov <lev@openvpn.net> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Change-Id: Ic440f2c8d46dfcb5ff41ba2f33bf28bb7286eec4 Message-Id: <20240329103739.28254-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28503.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/misc.h')
-rw-r--r--src/openvpn/misc.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/openvpn/misc.h b/src/openvpn/misc.h
index cb3bf68..963f3e6 100644
--- a/src/openvpn/misc.h
+++ b/src/openvpn/misc.h
@@ -152,26 +152,18 @@ get_user_pass(struct user_pass *up,
return get_user_pass_cr(up, auth_file, prefix, flags, NULL);
}
-void fail_user_pass(const char *prefix,
- const unsigned int flags,
- const char *reason);
-
void purge_user_pass(struct user_pass *up, const bool force);
/**
- * Sets the auth-token to token. If a username is available from
- * either up or already present in tk that will be used as default
- * username for the token. The method will also purge up if
+ * Sets the auth-token to token. The method will also purge up if
* the auth-nocache option is active.
*
- * @param up (non Auth-token) Username/password
* @param tk auth-token userpass to set
* @param token token to use as password for the auth-token
*
* @note all parameters to this function must not be null.
*/
-void set_auth_token(struct user_pass *up, struct user_pass *tk,
- const char *token);
+void set_auth_token(struct user_pass *tk, const char *token);
/**
* Sets the auth-token username by base64 decoding the passed