From: David Sommerseth Date: Fri, 27 Sep 2019 22:45:34 +0000 (+0200) Subject: auth-token: Fix building with --disable-server X-Git-Tag: v2.5_beta1~273 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c20434a8c718ed577b62d96200a6c30472edadd6;p=thirdparty%2Fopenvpn.git auth-token: Fix building with --disable-server 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 Acked-by: Gert Doering 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 --- diff --git a/src/openvpn/push.c b/src/openvpn/push.c index dc1a536a4..49b9d1bee 100644 --- a/src/openvpn/push.c +++ b/src/openvpn/push.c @@ -39,7 +39,9 @@ #if P2MP +#ifdef P2MP_SERVER static char push_reply_cmd[] = "PUSH_REPLY"; +#endif /* * Auth username/password diff --git a/src/openvpn/ssl_common.h b/src/openvpn/ssl_common.h index 406601bc5..5e21009e6 100644 --- a/src/openvpn/ssl_common.h +++ b/src/openvpn/ssl_common.h @@ -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 */