]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
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 f62e2d5d008048d068caef16790d78b0f883eb9f..304eff4048794fcf974c58a95a029a99f731ab37 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 9ad5a2f771df5b9cb25c2a4dc43e61a81d7d9e8f..83ebd200c78d2d437a8c3d6e39d7c04cd9a5bbc1 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 f4387019cf66d8585ef0234741275b3bf7540275..d1a6805a0cf41a0b18e90953f4817986ec745f50 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 */