summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index 30701c0..94d8320 100644
--- a/src/config.y
+++ b/src/config.y
@@ -169,6 +169,8 @@ statement: peer_group_statement
| TOK_GROUP group ';'
| TOK_DROP TOK_CAPABILITIES drop_capabilities ';'
| TOK_SECURE TOK_HANDSHAKES secure_handshakes ';'
+ | TOK_CIPHER cipher ';'
+ | TOK_MAC mac ';'
| TOK_LOG log ';'
| TOK_HIDE hide ';'
| TOK_INTERFACE interface ';'
@@ -226,6 +228,14 @@ secure_handshakes:
}
;
+cipher: TOK_STRING TOK_USE TOK_STRING {
+ fastd_config_cipher(ctx, conf, $1->str, $3->str);
+ }
+
+mac: TOK_STRING TOK_USE TOK_STRING {
+ fastd_config_mac(ctx, conf, $1->str, $3->str);
+ }
+
log: TOK_LEVEL log_level {
conf->log_stderr_level = $2;
}