summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 534a30e..175dc00 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -25,7 +25,6 @@
#include "fastd.h"
-#include "crypto.h"
#include "handshake.h"
#include "peer.h"
#include <fastd_version.h>
@@ -147,20 +146,11 @@ static void close_log(fastd_context_t *ctx) {
static void crypto_init(fastd_context_t *ctx) {
fastd_cipher_init(ctx);
-
-#ifdef USE_CRYPTO_GHASH
- ctx->crypto_ghash = ctx->conf->crypto_ghash->init(ctx);
- if (!ctx->crypto_ghash)
- exit_error(ctx, "Unable to initialize GHASH implementation");
-#endif
+ fastd_mac_init(ctx);
}
static void crypto_free(fastd_context_t *ctx UNUSED) {
-#ifdef USE_CRYPTO_GHASH
- ctx->conf->crypto_ghash->free(ctx, ctx->crypto_ghash);
- ctx->crypto_ghash = NULL;
-#endif
-
+ fastd_mac_free(ctx);
fastd_cipher_free(ctx);
}