]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
The code blocks enabled by ENABLE_CLIENT_CR depends on management
authorIgor Novgorodov <igor@novg.net>
Sun, 12 Feb 2012 18:40:02 +0000 (22:40 +0400)
committerDavid Sommerseth <davids@redhat.com>
Mon, 13 Feb 2012 15:13:44 +0000 (16:13 +0100)
If the management interface is not enabled, it makes no sense in
including the ENABLE_CLIENT_CR #ifdef blocks.  This will also in
some configurations cause build issues if these blocks are enabled.

Signed-off-by: Igor Novgorodov <igor@novg.net>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
syshead.h

index f1211142b304fce0b48214dfc947748805499d81..98be0c39bb1c10ca1d9ef34a001f1680d0fc97b2 100644 (file)
--- a/syshead.h
+++ b/syshead.h
@@ -713,7 +713,9 @@ socket_defined (const socket_descriptor_t sd)
 /*
  * Do we support challenge/response authentication as client?
  */
+#if defined(ENABLE_MANAGEMENT)
 #define ENABLE_CLIENT_CR
+#endif
 
 /*
  * Do we support pushing peer info?