X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fcrypto.c;h=bf9fe08a657f63464b6003cc320a4b34ff0d2607;hb=04b588ea6be2ebd62922b638eae90a6a47326370;hp=5c7573602651ccbead9d63ed3c2a4765c686f407;hpb=0345a1468613e1ba4a4aa6dbbef44a26f1eb42d9;p=tinc diff --git a/src/openssl/crypto.c b/src/openssl/crypto.c index 5c757360..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" @@ -95,11 +94,6 @@ void crypto_init(void) { random_init(); ENGINE_load_builtin_engines(); - ENGINE_register_all_complete(); -#if OPENSSL_API_COMPAT < 0x10100000L - ERR_load_crypto_strings(); - OpenSSL_add_all_algorithms(); -#endif if(!RAND_status()) { fprintf(stderr, "Not enough entropy for the PRNG!\n"); @@ -108,10 +102,5 @@ void crypto_init(void) { } void crypto_exit(void) { -#if OPENSSL_API_COMPAT < 0x10100000L - EVP_cleanup(); - ERR_free_strings(); - ENGINE_cleanup(); -#endif random_exit(); }