From 5f7258ade2dd8bad076d17d3a85fb04d9bf71bda Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Nov 2013 04:58:05 +0100 Subject: Make crypto implementation configurable (and update a few error messages) --- src/config.y | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/config.y') 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; } -- cgit v1.2.3