This change fixes the build when
- ./configure is run with --disable-plugins
- ./configure is run with --disable-peap --disable-eaptls
--disable-microsoft-extensions
The latter disables the MPPE encryption too, but <pppd/crypto.h> is
still needed.
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
case PPP_DIR_RUNTIME:
path = PPP_PATH_VARRUN;
break;
+#ifdef PPP_WITH_PLUGINS
case PPP_DIR_PLUGIN:
path = PPP_PATH_PLUGIN;
break;
+#endif
case PPP_DIR_CONF:
path = PPP_PATH_CONFDIR;
break;
case PPP_DIR_RUNTIME:
path = PPP_PATH_VARRUN;
break;
+#ifdef PPP_WITH_PLUGINS
case PPP_DIR_PLUGIN:
path = PPP_PATH_PLUGIN;
break;
- case PPP_DIR_CONF:
+#endif
+ case PPP_DIR_CONF:
path = PPP_PATH_CONFDIR;
break;
}
#include <pppd/chap_ms.h>
#ifdef PPP_WITH_MPPE
#include <pppd/mppe.h>
-#include <pppd/crypto.h>
#endif
#endif
+#include <pppd/crypto.h>
#include <pppd/fsm.h>
#include <pppd/ipcp.h>