From: Francis Dupont Date: Sat, 12 Sep 2020 16:17:19 +0000 (+0200) Subject: [#1304] Checkpoint before regen (2) X-Git-Tag: Kea-1.9.0~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357d67cd411cab5a77f06f22dcf72d2d286a16ee;p=thirdparty%2Fkea.git [#1304] Checkpoint before regen (2) --- diff --git a/src/bin/agent/agent_parser.yy b/src/bin/agent/agent_parser.yy index 5f8c981b81..36c686288b 100644 --- a/src/bin/agent/agent_parser.yy +++ b/src/bin/agent/agent_parser.yy @@ -103,6 +103,7 @@ using namespace std; %type value %type map_value %type socket_type_value +%type auth_type_value %printer { yyoutput << $$; } <*>; @@ -509,20 +510,20 @@ auth_params: auth_param | auth_params COMMA auth_param ; -auth_param: type +auth_param: auth_type | realm | clients ; -type: TYPE { +auth_type: TYPE { // Add unique here ctx.enter(ctx.AUTH_TYPE); -} COLON auth_type { +} COLON auth_type_value { ctx.stack_.back()->set("type", $4); ctx.leave(); }; -auth_type: BASIC { $$ = ElementPtr(new StringElement("basic", ctx.loc2pos(@1))); } +auth_type_value: BASIC { $$ = ElementPtr(new StringElement("basic", ctx.loc2pos(@1))); } ; realm: REALM {