From 3995adf7882a43d4c7c206a1c5335e3fdbc9c529 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 19 May 2017 20:07:06 +0200 Subject: 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. --- src/fastd.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src') diff --git a/src/fastd.c b/src/fastd.c index 93df249..cdb925d 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -54,12 +54,6 @@ #include #endif -#ifdef ENABLE_OPENSSL -#include -#include -#include -#endif - #ifdef ENABLE_SYSTEMD #include #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(); -- cgit v1.2.3