From beabac6ae64ab83c86cc2ff957e50acbb696da38 Mon Sep 17 00:00:00 2001 From: kcr Date: Thu, 18 Dec 2008 04:54:58 +0000 Subject: [PATCH] r4536@bucket (orig r283): kcr | 2008-07-18 16:37:47 -0400 ZFormatAuthenticNotice is a krb4-only thing git-svn-id: svn://svn.1ts.org/debian/trunk/zephyr@353 cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f --- lib/ZFmtAuth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.45.2