diff options
author | Francis Dupont <fdupont@isc.org> | 2020-09-17 15:24:45 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2020-09-21 12:37:07 +0200 |
commit | 2494954ba7d66fc68b059a9e710ac195f9202d23 (patch) | |
tree | fc8b4f94509343cb5f8bd8d49bb449162edd23b4 /src/bin/agent | |
parent | [#1102] Addressed comments (diff) | |
download | kea-2494954ba7d66fc68b059a9e710ac195f9202d23.tar.xz kea-2494954ba7d66fc68b059a9e710ac195f9202d23.zip |
[#1102] Checkpoint after regen with rebase fixed
Diffstat (limited to 'src/bin/agent')
-rw-r--r-- | src/bin/agent/agent_parser.yy | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/agent/agent_parser.yy b/src/bin/agent/agent_parser.yy index 7e014ae8d0..fad645befc 100644 --- a/src/bin/agent/agent_parser.yy +++ b/src/bin/agent/agent_parser.yy @@ -500,7 +500,7 @@ socket_type_value : UNIX { $$ = ElementPtr(new StringElement("unix", ctx.loc2pos // --- authentication starts here ----------------------------------------------------- authentication: AUTHENTICATION { - // Add unique here + ctx.unique("authentication", ctx.loc2pos(@1)); ElementPtr m(new MapElement(ctx.loc2pos(@1))); ctx.stack_.back()->set("authentication", m); ctx.stack_.push_back(m); @@ -525,7 +525,7 @@ auth_param: auth_type ; auth_type: TYPE { - // Add unique here + ctx.unique("type", ctx.loc2pos(@1)); ctx.enter(ctx.AUTH_TYPE); } COLON auth_type_value { ctx.stack_.back()->set("type", $4); @@ -536,7 +536,7 @@ auth_type_value: BASIC { $$ = ElementPtr(new StringElement("basic", ctx.loc2pos( ; realm: REALM { - // Add unique here + ctx.unique("realm", ctx.loc2pos(@1)); ctx.enter(ctx.NO_KEYWORDS); } COLON STRING { ElementPtr realm(new StringElement($4, ctx.loc2pos(@4))); @@ -545,7 +545,7 @@ realm: REALM { }; clients: CLIENTS { - // Add unique here + ctx.unique("clients", ctx.loc2pos(@1)); ElementPtr l(new ListElement(ctx.loc2pos(@1))); ctx.stack_.back()->set("clients", l); ctx.stack_.push_back(l); @@ -583,6 +583,7 @@ clients_param: user ; user: USER { + ctx.unique("user", ctx.loc2pos(@1)); ctx.enter(ctx.NO_KEYWORDS); } COLON STRING { ElementPtr user(new StringElement($4, ctx.loc2pos(@4))); @@ -591,6 +592,7 @@ user: USER { }; password: PASSWORD { + ctx.unique("password", ctx.loc2pos(@1)); ctx.enter(ctx.NO_KEYWORDS); } COLON STRING { ElementPtr password(new StringElement($4, ctx.loc2pos(@4))); |