When building a very minimal OpenVPN for OpenWRT with --disable-management among others, the compilaton fails due to ENABLE_CLIENT_CR being defined, although the management interface,
which makes use of it, has been disabled.

The attached simple patch checks for ENABLE_MANAGEMENT before defining ENABLE_CLIENT_CR.
--- a/syshead.h
+++ b/syshead.h
@@ -713,7 +713,9 @@
 /*
  * Do we support challenge/response authentication as client?
  */
+#if defined(ENABLE_MANAGEMENT)
 #define ENABLE_CLIENT_CR
+#endif

 /*
  * Do we support pushing peer info?

Reply via email to