diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-29 23:18:21 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-30 00:42:35 +0100 |
commit | 1111dc8e5e9e78254c1a7a891d961713e1be9db0 (patch) | |
tree | 3490dad7d1c43d32a9c5d362d6f03bb17cb5408a /src/fastd.c | |
parent | a09d04a02231964fa5a8f0113e9909cfb140fe4e (diff) | |
download | fastd-1111dc8e5e9e78254c1a7a891d961713e1be9db0.tar fastd-1111dc8e5e9e78254c1a7a891d961713e1be9db0.zip |
Remove cipher and MAC contexts
Not a single implementation was using them...
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/fastd.c b/src/fastd.c index 03ffc52..c75fa9b 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -152,16 +152,6 @@ static void close_log(fastd_context_t *ctx) { closelog(); } -static void crypto_init(fastd_context_t *ctx) { - fastd_cipher_init(ctx); - fastd_mac_init(ctx); -} - -static void crypto_free(fastd_context_t *ctx UNUSED) { - fastd_mac_free(ctx); - fastd_cipher_free(ctx); -} - static void init_sockets(fastd_context_t *ctx) { ctx->socks = malloc(ctx->conf->n_bind_addrs * sizeof(fastd_socket_t)); @@ -798,8 +788,6 @@ int main(int argc, char *argv[]) { /* change groups early as the can be relevant for file access (for PID file & log files) */ set_groups(&ctx); - crypto_init(&ctx); - init_sockets(&ctx); if (!fastd_socket_handle_binds(&ctx)) @@ -885,8 +873,6 @@ int main(int argc, char *argv[]) { free(ctx.eth_addr); free(ctx.ifname); - crypto_free(&ctx); - close_log(&ctx); fastd_config_release(&ctx, &conf); |