summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-07-18 20:37:47 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-07-18 20:37:47 +0000
commita0d1c79d6080c067346b16d2779d4b3ff8e400cb (patch)
tree0f08edf24063c96da817af7621ef7dcbd6539bd2
parent8a382cc10f75deb474ae6d6959e6ded952203ae5 (diff)
ZFormatAuthenticNotice is a krb4-only thing
-rw-r--r--lib/ZFmtAuth.c4
1 files changed, 3 insertions, 1 deletions
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 <internal.h>
-#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;