From a0d1c79d6080c067346b16d2779d4b3ff8e400cb Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Fri, 18 Jul 2008 20:37:47 +0000 Subject: ZFormatAuthenticNotice is a krb4-only thing --- lib/ZFmtAuth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/ZFmtAuth.c') diff --git a/lib/ZFmtAuth.c b/lib/ZFmtAuth.c index 821e608..92fb3c6 100644 --- a/lib/ZFmtAuth.c +++ b/lib/ZFmtAuth.c @@ -16,7 +16,7 @@ static const char rcsid_ZFormatAuthenticNotice_c[] = "$Id$"; #include -#if defined(HAVE_KRB4) || defined(HAVE_KRB5) +#ifdef HAVE_KRB4 Code_t ZFormatAuthenticNotice(ZNotice_t *notice, char *buffer, @@ -82,6 +82,7 @@ ZFormatAuthenticNoticeV5(ZNotice_t *notice, if (retval) return (ZAUTH_FAILED); +#ifdef HAVE_KRB4 if (key_len == 8 && (enctype == ENCTYPE_DES_CBC_CRC || enctype == ENCTYPE_DES_CBC_MD4 || enctype == ENCTYPE_DES_CBC_MD5)) { @@ -90,6 +91,7 @@ ZFormatAuthenticNoticeV5(ZNotice_t *notice, return ZFormatAuthenticNotice(notice, buffer, buffer_len, len, tmp); } +#endif newnotice = *notice; newnotice.z_auth = 1; -- cgit v1.2.3