From: Guus Sliepen Date: Wed, 21 Jul 2021 09:54:34 +0000 (+0200) Subject: Don't call OPENSSL_cleanup(). X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=3bfdf45893f28f232c5851eb67d1800dc5004687;p=tinc Don't call OPENSSL_cleanup(). Some versions of LibreSSL don't have this function, even if they support the rest of the OpenSSL 1.1 API. It also doesn't seem to affect the output of Valgrind, so it looks like it's not necessary at all. --- diff --git a/src/openssl/crypto.c b/src/openssl/crypto.c index 7e020e61..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" @@ -103,6 +102,5 @@ void crypto_init(void) { } void crypto_exit(void) { - OPENSSL_cleanup(); random_exit(); }