From 8778323cddcf8e2ea91eb6da6b748e9e287f5fe8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 4 Jul 2005 03:34:56 +0000 Subject: r8112: Remove extra headers, and add #ifdef to allow the 'not yet using Heimdal' case. Andrew Bartlett (This used to be commit b7c3c2f67188d8c8478d93e6890a81fa7d468061) --- source4/torture/auth/pac.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'source4/torture/auth/pac.c') 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 + -- cgit