diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-28 05:53:26 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-29 01:30:07 +0200 |
commit | efcafca969d2e789cdf106609b04a86ef9b53a3d (patch) | |
tree | 001ca30403dea064b4d30bb521d8eb8de91f10a3 /src/fastd.c | |
parent | d5da100c55d80391d2e941a41c0e0dccf2a6e33e (diff) | |
download | fastd-efcafca969d2e789cdf106609b04a86ef9b53a3d.tar fastd-efcafca969d2e789cdf106609b04a86ef9b53a3d.zip |
Simplify configuration of cipher and MAC implementations
Let the cipher and MAC handlers just store the chosen implementations themselves
instead of relying on the global configuration.
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c index 7e5b640..a33ba66 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -27,6 +27,7 @@ #include "fastd.h" #include "async.h" #include "config.h" +#include "crypto.h" #include "peer.h" #include "peer_hashtable.h" #include "poll.h" @@ -463,6 +464,9 @@ int main(int argc, char *argv[]) { fastd_random_bytes(&ctx.randseed, sizeof(ctx.randseed), false); + fastd_cipher_init(); + fastd_mac_init(); + fastd_configure(argc, argv); if (conf.verify_config) { |