From 74bdd13d797851b744ddb1c6aba90e6c786800ee Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Thu, 24 Aug 2017 15:55:36 +0200 Subject: [PATCH] Fix Crypto --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index e0d6e00..7c2e6d2 100644 --- a/src/main.c +++ b/src/main.c @@ -61,6 +61,9 @@ int main(int argc, char **argv) { argc -= optind; argv += optind; + gcrypt_init(); + gcrypt_set_key_and_iv(shared_key, iv); + if (pthread_mutex_init(&list_mutex, NULL) != 0) { printf("\n mutex init failed\n"); return 1;