]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
auth-token: Fix compiler complaints with --disable-management
authorDavid Sommerseth <davids@openvpn.net>
Fri, 27 Sep 2019 22:45:35 +0000 (00:45 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 1 Oct 2019 11:14:38 +0000 (13:14 +0200)
When building with --disable-management, the compiler complains with
implicit declaration of function ‘ssl_clean_auth_token’.  This is due to
the ssl_clean_auth_token() function being declared inside an #ifdef
ENABLE_MANAGEMENT fence where it should not be.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190927224536.27480-3-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18873.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.h

index e98c54c732c63114b06711b9446b72d65a46fdde..a944ca3a0f3527956dc297ff9159af6458882618 100644 (file)
@@ -431,6 +431,8 @@ void ssl_purge_auth(const bool auth_user_pass_only);
 
 void ssl_set_auth_token(const char *token);
 
+bool ssl_clean_auth_token(void);
+
 #ifdef ENABLE_MANAGEMENT
 /*
  * ssl_get_auth_challenge will parse the server-pushed auth-failed
@@ -439,8 +441,6 @@ void ssl_set_auth_token(const char *token);
  */
 void ssl_purge_auth_challenge(void);
 
-bool ssl_clean_auth_token(void);
-
 void ssl_put_auth_challenge(const char *cr_str);
 
 #endif