X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fcrypto.c;h=bf9fe08a657f63464b6003cc320a4b34ff0d2607;hb=04b588ea6be2ebd62922b638eae90a6a47326370;hp=8fc7e77b77750854bc9ec9743f608699832d3472;hpb=b0b4a2f1eb3bef0141d817cbf3b575a5dd28f241;p=tinc diff --git a/src/openssl/crypto.c b/src/openssl/crypto.c index 8fc7e77b..bf9fe08a 100644 --- a/src/openssl/crypto.c +++ b/src/openssl/crypto.c @@ -20,7 +20,6 @@ #include "../system.h" #include -#include #include #include "../crypto.h" @@ -94,8 +93,7 @@ void randomize(void *out, size_t outlen) { void crypto_init(void) { random_init(); - uint64_t opts = OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_ENGINE_ALL_BUILTIN; - OPENSSL_init_crypto(opts, NULL); + ENGINE_load_builtin_engines(); if(!RAND_status()) { fprintf(stderr, "Not enough entropy for the PRNG!\n"); @@ -104,6 +102,5 @@ void crypto_init(void) { } void crypto_exit(void) { - OPENSSL_cleanup(); random_exit(); }