kauth-retire-SPECIAL-macro-20010711
[openafs.git] / src / kauth / kadatabase.c
index 4969382..d4288ea 100644 (file)
@@ -1,10 +1,17 @@
-/* Copyright (C) 1990 Transarc Corporation - All rights reserved */
 /*
- * (C) COPYRIGHT IBM CORPORATION 1988
- * LICENSED MATERIALS - PROPERTY OF IBM
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ * 
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 #include <afs/param.h>
+#include <afsconfig.h>
+
+RCSID("$Header$");
+
 #include <sys/types.h>
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
@@ -381,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;
@@ -543,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
@@ -714,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)) {
@@ -780,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);