From: Ted Lemon Date: Thu, 6 Apr 2000 22:38:52 +0000 (+0000) Subject: Add KEY, SECRET and ALGORITHM. Remove TSIG_KEY. X-Git-Tag: V3-BETA-2-PATCH-1~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6a480f013cbeac428b1a5151fe47ae396ac43fb;p=thirdparty%2Fdhcp.git Add KEY, SECRET and ALGORITHM. Remove TSIG_KEY. --- diff --git a/common/conflex.c b/common/conflex.c index fc1130bcd..4f51c2051 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: conflex.c,v 1.70 2000/04/04 06:25:51 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: conflex.c,v 1.71 2000/04/06 22:38:52 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -490,8 +490,6 @@ static enum dhcp_token intern (atom, dfv) } if (!strcasecmp (atom + 1, "uthoritative")) return AUTHORITATIVE; - if (!strcasecmp (atom + 1, "uth-key")) - return AUTH_KEY; break; } if (!strcasecmp (atom + 1, "nd")) @@ -502,6 +500,8 @@ static enum dhcp_token intern (atom, dfv) return ALLOW; if (!strcasecmp (atom + 1, "lias")) return ALIAS; + if (!strcasecmp (atom + 1, "lgorithm")) + return ALGORITHM; if (!strcasecmp (atom + 1, "bandoned")) return ABANDONED; if (!strcasecmp (atom + 1, "dd")) @@ -685,6 +685,8 @@ static enum dhcp_token intern (atom, dfv) case 'k': if (!strcasecmp (atom + 1, "nown")) return KNOWN; + if (!strcasecmp (atom + 1, "ey")) + return KEY; break; case 'l': if (!strcasecmp (atom + 1, "ease")) @@ -834,6 +836,8 @@ static enum dhcp_token intern (atom, dfv) return NS_REFUSED; break; case 's': + if (!strcasecmp (atom + 1, "ecret")) + return SECRET; if (!strcasecmp (atom + 1, "ervfail")) return NS_SERVFAIL; if (!strcasecmp (atom + 1, "witch")) @@ -887,8 +891,6 @@ static enum dhcp_token intern (atom, dfv) return TOKEN_SET; break; case 't': - if (!strcasecmp (atom + 1, "sig-key")) - return TSIG_KEY; if (!strcasecmp (atom + 1, "imestamp")) return TIMESTAMP; if (!strcasecmp (atom + 1, "imeout"))