]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add new keywords for authentication databases.
authorTed Lemon <source@isc.org>
Tue, 9 Mar 1999 23:39:41 +0000 (23:39 +0000)
committerTed Lemon <source@isc.org>
Tue, 9 Mar 1999 23:39:41 +0000 (23:39 +0000)
common/conflex.c

index a3bc9842ad32cdec32de03ee01505c60918c59e0..f1090e6c8473e9e7cae84732f538e024e152281f 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.38 1999/02/25 23:30:33 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.39 1999/03/09 23:39:41 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -354,6 +354,20 @@ static int intern (atom, dfv)
 
        switch (tolower (atom [0])) {
              case 'a':
+               if (!strncasecmp (atom + 1, "uth", 3)) {
+                       if (!strncasecmp (atom + 3, "uthenticat", 10)) {
+                               if (!strcasecmp (atom + 13, "ed"))
+                                       return AUTHENTICATED;
+                               if (!strcasecmp (atom + 13, "ion"))
+                                       return AUTHENTICATION;
+                               break;
+                       }
+                       if (!strcasecmp (atom + 1, "uthoritative"))
+                               return AUTHORITATIVE;
+                       if (!strcasecmp (atom + 1, "uth-key"))
+                               return AUTH_KEY;
+                       break;
+               }
                if (!strcasecmp (atom + 1, "nd"))
                        return AND;
                if (!strcasecmp (atom + 1, "ppend"))
@@ -364,14 +378,8 @@ static int intern (atom, dfv)
                        return ALIAS;
                if (!strcasecmp (atom + 1, "bandoned"))
                        return ABANDONED;
-               if (!strcasecmp (atom + 1, "uthoritative"))
-                       return AUTHORITATIVE;
                if (!strcasecmp (atom + 1, "dd"))
                        return ADD;
-               if (!strcasecmp (atom + 1, "uthenticated"))
-                       return AUTHENTICATED;
-               if (!strcasecmp (atom + 1, "uth-key"))
-                       return AUTH_KEY;
                if (!strcasecmp (atom + 1, "ll"))
                        return ALL;
                break;