Make sure wbclient.h is included when needed. Fixes #1208
authorAlan T. DeKok <aland@freeradius.org>
Fri, 4 Sep 2015 14:20:50 +0000 (10:20 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 4 Sep 2015 14:20:50 +0000 (10:20 -0400)
src/modules/rlm_mschap/auth_wbclient.c
src/modules/rlm_mschap/auth_wbclient.h
src/modules/rlm_mschap/rlm_mschap.c

index f62e2d5..304eff4 100644 (file)
@@ -27,7 +27,6 @@ RCSID("$Id$")
 #include <freeradius-devel/radiusd.h>
 #include <freeradius-devel/rad_assert.h>
 
-#include <wbclient.h>
 #include <core/ntstatus.h>
 
 #include "rlm_mschap.h"
index 9ad5a2f..83ebd20 100644 (file)
@@ -5,6 +5,8 @@
 
 RCSIDH(auth_wbclient_h, "$Id$")
 
+#include <wbclient.h>
+
 int do_auth_wbclient(rlm_mschap_t *inst, REQUEST *request,
                     uint8_t const *challenge, uint8_t const *response,
                     uint8_t nthashhash[NT_DIGEST_LENGTH]);
index f438701..d1a6805 100644 (file)
@@ -36,7 +36,10 @@ RCSID("$Id$")
 #include "rlm_mschap.h"
 #include "mschap.h"
 #include "smbdes.h"
+
+#ifdef WITH_AUTH_WINBIND
 #include "auth_wbclient.h"
+#endif
 
 #ifdef HAVE_OPENSSL_CRYPTO_H
 USES_APPLE_DEPRECATED_API      /* OpenSSL API has been deprecated by Apple */