Remove unnecessary OpenSSL initialization and cleanup

Some of these functions have been deprecated in OpenSSL 1.1; in any case,
the calls aren't necessary.
This commit is contained in:
Matthias Schiffer 2017-05-19 20:07:06 +02:00
parent 8505374ee2
commit 3995adf788
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -54,12 +54,6 @@
#include <sodium/core.h>
#endif
#ifdef ENABLE_OPENSSL
#include <openssl/conf.h>
#include <openssl/evp.h>
#include <openssl/err.h>
#endif
#ifdef ENABLE_SYSTEMD
#include <sys/un.h>
#endif
@ -500,12 +494,6 @@ static inline void init_config(int *status_fd) {
exit_error("unable to initialize libsodium");
#endif
#ifdef ENABLE_OPENSSL
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
OPENSSL_config(NULL);
#endif
fastd_config_check();
}
@ -685,12 +673,6 @@ static inline void cleanup(void) {
free(ctx.protocol_state);
#ifdef ENABLE_OPENSSL
CONF_modules_free();
EVP_cleanup();
ERR_free_strings();
#endif
fastd_receive_unknown_free();
close_log();