summaryrefslogtreecommitdiffstats
path: root/src/config.h
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.h
parentf7e72b3584b54d43401fb02aa7ea677dc3bf0564 (diff)
downloadfastd-5f7258ade2dd8bad076d17d3a85fb04d9bf71bda.tar
fastd-5f7258ade2dd8bad076d17d3a85fb04d9bf71bda.zip
Make crypto implementation configurable (and update a few error messages)
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/config.h b/src/config.h
index 2b43968..d12e5ef 100644
--- a/src/config.h
+++ b/src/config.h
@@ -32,6 +32,8 @@
void fastd_config_protocol(fastd_context_t *ctx, fastd_config_t *conf, const char *name);
void fastd_config_method(fastd_context_t *ctx, fastd_config_t *conf, const char *name);
+void fastd_config_cipher(fastd_context_t *ctx, fastd_config_t *conf, const char *name, const char *impl);
+void fastd_config_mac(fastd_context_t *ctx, fastd_config_t *conf, const char *name, const char *impl);
void fastd_config_add_log_file(fastd_context_t *ctx, fastd_config_t *conf, const char *name, fastd_loglevel_t level);
void fastd_config_bind_address(fastd_context_t *ctx, fastd_config_t *conf, const fastd_peer_address_t *address, const char *bindtodev, bool default_v4, bool default_v6);
void fastd_config_peer_group_push(fastd_context_t *ctx, fastd_config_t *conf, const char *name);
@@ -44,12 +46,4 @@ void fastd_config_handle_options(fastd_context_t *ctx, fastd_config_t *conf, int
void fastd_add_peer_dir(fastd_context_t *ctx, fastd_config_t *conf, const char *dir);
bool fastd_read_config(fastd_context_t *ctx, fastd_config_t *conf, const char *filename, bool peer_config, int depth);
-const fastd_cipher_t** fastd_cipher_config_alloc(void);
-void fastd_cipher_config_free(const fastd_cipher_t **cipher_conf);
-bool fastd_cipher_config(const fastd_cipher_t **cipher_conf, const char *name, const char *impl);
-
-const fastd_mac_t** fastd_mac_config_alloc(void);
-void fastd_mac_config_free(const fastd_mac_t **mac_conf);
-bool fastd_mac_config(const fastd_mac_t **mac_conf, const char *name, const char *impl);
-
#endif /* _FASTD_CONFIG_H_ */