]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1304] Checkpoint before regen (2)
authorFrancis Dupont <fdupont@isc.org>
Sat, 12 Sep 2020 16:17:19 +0000 (18:17 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 12 Sep 2020 16:17:19 +0000 (18:17 +0200)
src/bin/agent/agent_parser.yy

index 5f8c981b8126b18222ca4706198dd38b1926302c..36c686288b8a6cf5a52e9f514fc4c234f00c14e2 100644 (file)
@@ -103,6 +103,7 @@ using namespace std;
 %type <ElementPtr> value
 %type <ElementPtr> map_value
 %type <ElementPtr> socket_type_value
+%type <ElementPtr> 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 {