summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-25 00:16:20 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-25 00:16:20 +0100
commit6ce20e2bb6660694e995d890f2846fc26c96c8f7 (patch)
tree5cbe80433351372237843f11951518e16e9a32b8 /src/config.l
parent0b61ebf351a69a3451727254eec2c7e1cc024b4c (diff)
downloadfastd-6ce20e2bb6660694e995d890f2846fc26c96c8f7.tar
fastd-6ce20e2bb6660694e995d890f2846fc26c96c8f7.zip
Add keypair config
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.l b/src/config.l
index 5e5e666..1173d44 100644
--- a/src/config.l
+++ b/src/config.l
@@ -20,6 +20,8 @@ mode { yylval->str = yytext; return TOK_MODE; }
protocol { yylval->str = yytext; return TOK_PROTOCOL; }
peer { yylval->str = yytext; return TOK_PEER; }
address { yylval->str = yytext; return TOK_ADDRESS; }
+secret { yylval->str = yytext; return TOK_SECRET; }
+key { yylval->str = yytext; return TOK_KEY; }
[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} {
if (!inet_pton(AF_INET, yytext, &yylval->addr)) {