summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-07-04 03:34:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:09 -0500
commit8778323cddcf8e2ea91eb6da6b748e9e287f5fe8 (patch)
treefd0c804fd146b9f9aa0cf38053530909fa945c05 /source4/torture
parent950f6624842628b770bf58424f3b2ab9a7036263 (diff)
downloadsamba-8778323cddcf8e2ea91eb6da6b748e9e287f5fe8.tar.gz
samba-8778323cddcf8e2ea91eb6da6b748e9e287f5fe8.tar.bz2
samba-8778323cddcf8e2ea91eb6da6b748e9e287f5fe8.zip
r8112: Remove extra headers, and add #ifdef to allow the 'not yet using
Heimdal' case. Andrew Bartlett (This used to be commit b7c3c2f67188d8c8478d93e6890a81fa7d468061)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/auth/pac.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/source4/torture/auth/pac.c b/source4/torture/auth/pac.c
index 79cae5cbea..00196b493f 100644
--- a/source4/torture/auth/pac.c
+++ b/source4/torture/auth/pac.c
@@ -23,12 +23,11 @@
#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
+