summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-05-19 20:07:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-05-19 20:07:58 +0200
commit3995adf7882a43d4c7c206a1c5335e3fdbc9c529 (patch)
treecd7eb8eef4c7abbea8c0fe1ae52890656df70569
parent8505374ee208d51a39e7b22846f9b781b9ccb452 (diff)
downloadfastd-3995adf7882a43d4c7c206a1c5335e3fdbc9c529.tar
fastd-3995adf7882a43d4c7c206a1c5335e3fdbc9c529.zip
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.
-rw-r--r--src/fastd.c18
1 files changed, 0 insertions, 18 deletions
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 <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();