From 2f1590321a41099115521b98a33a44a872674892 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 11 Jul 2001 19:04:39 +0000 Subject: [PATCH] kauth-retire-SPECIAL-macro-20010711 SPECIAL macro was presumably for conversion to special key cache environment and is no longer needed --- src/kauth/Makefile | 12 ++---------- src/kauth/kadatabase.c | 13 ------------- src/kauth/kaprocs.c | 2 -- 3 files changed, 2 insertions(+), 25 deletions(-) diff --git a/src/kauth/Makefile b/src/kauth/Makefile index 998c9add7..3647b939e 100644 --- a/src/kauth/Makefile +++ b/src/kauth/Makefile @@ -82,18 +82,10 @@ kautils.o: kautils.c ${INCLS} kalocalcell.o: kalocalcell.c ${INCLS} kadatabase.o: kadatabase.c ${INCLS} - ${CC} ${CFLAGS} -c kadatabase.c -DSPECIAL=1 - -xkaprocs: kaprocs.c ${INCLS} - ${CC} ${CFLAGS} -c kaprocs.c -DAUTOCPWINTERVAL=30 -DAUTOCPWUPDATES=3 - -# Installations using Auth2 conversion server should specify the GETPASSWORD -# flag. This also means logins to machines running this server must be -# tightly controlled. -# ${CC} ${CFLAGS} -c kaprocs.c -DSPECIAL=1 -DGETPASSWORD + ${CC} ${CFLAGS} -c kadatabase.c kaprocs.o: kaprocs.c ${INCLS} kaport.h - ${CC} ${CFLAGS} -c kaprocs.c -DSPECIAL=1 + ${CC} ${CFLAGS} -c kaprocs.c authclient.o: authclient.c ${INCLS} diff --git a/src/kauth/kadatabase.c b/src/kauth/kadatabase.c index 29034526f..d4288ea21 100644 --- a/src/kauth/kadatabase.c +++ b/src/kauth/kadatabase.c @@ -388,9 +388,6 @@ afs_int32 ka_NewKey (tt, tentryaddr, tentry, key) afs_int32 newtotalkeyentries = 0, oldtotalkeyentries = 0, keyentries; int foundcurrentkey = 0, addednewkey = 0, modified; -#if !SPECIAL - if ((ntohl(tentry->flags) & KAFSPECIAL) == 0) return KANOTSPECIAL; -#endif es_Report ("Newkey for %s.%s\n", tentry->userID.name, tentry->userID.instance); newkeyver = ntohl(tentry->key_version) + 1; @@ -550,10 +547,6 @@ afs_int32 ka_DelKey (tt, tentryaddr, tentry) afs_int32 prevptr = 0; Date now = time(0); -#if !SPECIAL - if ((ntohl(tentry->flags) & KAFSPECIAL) == 0) return KANOTSPECIAL; -#endif - es_Report ("DelKey for %s.%s\n", tentry->userID.name, tentry->userID.instance); /* An entry may have more than one oldkeys blocks. The entry @@ -721,9 +714,6 @@ afs_int32 ka_LookupKvno (tt, name, inst, kvno, key) code = FindBlock (tt, name, inst, &to, &tentry); if (code) return code; if (to == 0) return KANOENT; -#if !SPECIAL - if ((ntohl(tentry.flags) & KAFSPECIAL) == 0) return KANOTSPECIAL; -#endif /* first check the current key */ if (tentry.key_version == htonl(kvno)) { @@ -787,9 +777,6 @@ afs_int32 ka_LookupKey (tt, name, inst, kvno, key) code = FindBlock (tt, name, inst, &to, &tentry); if (code) return code; if (to == 0) return KANOENT; -#if !SPECIAL - if ((ntohl(tentry.flags) & KAFSPECIAL) == 0) return KANOTSPECIAL; -#endif bcopy (&tentry.key, key, sizeof(*key)); *kvno = ntohl(tentry.key_version); ka_Encache (name, inst, *kvno, key, NEVERDATE); diff --git a/src/kauth/kaprocs.c b/src/kauth/kaprocs.c index 34a356b40..ddd1193e9 100644 --- a/src/kauth/kaprocs.c +++ b/src/kauth/kaprocs.c @@ -772,9 +772,7 @@ set_password (tt, name, instance, password, kvno, caller) if (special_name (name, instance)) { /* set key over rides key_version */ -#if SPECIAL tentry.flags = htonl (ntohl(tentry.flags) | KAFSPECIAL); -#endif if (code = ka_NewKey (tt, to, &tentry, password)) return(code); } else { -- 2.39.5