]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
auth-token: Fix building with --disable-server
authorDavid Sommerseth <davids@openvpn.net>
Fri, 27 Sep 2019 22:45:34 +0000 (00:45 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 1 Oct 2019 11:02:07 +0000 (13:02 +0200)
The final patches of the auth-token hmac support patches had a typo in
the P2MP_SERVER fencing breaking --disable-server builds.  It used #if
instead of #ifdef.

While at it, also fix another missing P2MP_SERVER fencing causing the
compiler to complain about an unused variable in push.c

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

index dc1a536a446bcd0105c4b437b47178f4b7f8cd44..49b9d1bee69c352a07e4c02a8531efb27e8a3beb 100644 (file)
@@ -39,7 +39,9 @@
 
 #if P2MP
 
+#ifdef P2MP_SERVER
 static char push_reply_cmd[] = "PUSH_REPLY";
+#endif
 
 /*
  * Auth username/password
index 406601bc515b18e680308ca45710d229acde0888..5e21009e6ff266cdb2bc2e13eec6ecef8562669d 100644 (file)
@@ -530,7 +530,7 @@ struct tls_multi
     time_t tas_last;
 #endif
 
-#if P2MP_SERVER
+#ifdef P2MP_SERVER
     /*
      * An error message to send to client on AUTH_FAILED
      */