r8112: Remove extra headers, and add #ifdef to allow the 'not yet using
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Jul 2005 03:34:56 +0000 (03:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:09 +0000 (13:19 -0500)
Heimdal' case.

Andrew Bartlett

source/torture/auth/pac.c

index 79cae5cbea665f2f485c9aebbb3c184e8183cbe1..00196b493f542908a0a9023627f12144de1f36ad 100644 (file)
 
 #include "includes.h"
 #include "system/kerberos.h"
-#include "system/time.h"
-#include "system/network.h"
 #include "auth/auth.h"
 #include "auth/kerberos/kerberos.h"
 #include "librpc/gen_ndr/ndr_krb5pac.h"
-#include "auth/auth.h"
+
+#ifdef HAVE_KRB5
 
 static BOOL torture_pac_self_check(void) 
 {
@@ -251,3 +250,14 @@ BOOL torture_pac(void)
        ret &= torture_pac_saved_check();
        return ret;
 }
+
+#else 
+
+BOOL torture_pac(void) 
+{
+       printf("Cannot do PAC test without Krb5\n");
+       return False;
+}
+
+#endif
+