X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fcrypto.c;h=7e020e61f9150ed6d9863f7c06191fb63fdf7421;hb=877d3b563002b81b7000412098d21c56d5a4ed09;hp=5c7573602651ccbead9d63ed3c2a4765c686f407;hpb=0345a1468613e1ba4a4aa6dbbef44a26f1eb42d9;p=tinc diff --git a/src/openssl/crypto.c b/src/openssl/crypto.c index 5c757360..7e020e61 100644 --- a/src/openssl/crypto.c +++ b/src/openssl/crypto.c @@ -95,11 +95,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 +103,6 @@ void crypto_init(void) { } void crypto_exit(void) { -#if OPENSSL_API_COMPAT < 0x10100000L - EVP_cleanup(); - ERR_free_strings(); - ENGINE_cleanup(); -#endif + OPENSSL_cleanup(); random_exit(); }