summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-30 04:58:05 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-30 04:58:05 +0100
commit5f7258ade2dd8bad076d17d3a85fb04d9bf71bda (patch)
tree6dead8b1a3f5df9ae1a903d2deaedcb189f4d0d8 /src/config.y
parentf7e72b3584b54d43401fb02aa7ea677dc3bf0564 (diff)
downloadfastd-5f7258ade2dd8bad076d17d3a85fb04d9bf71bda.tar
fastd-5f7258ade2dd8bad076d17d3a85fb04d9bf71bda.zip
Make crypto implementation configurable (and update a few error messages)
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;
}