mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-14 12:25:07 +02:00
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:
parent
8505374ee2
commit
3995adf788
1 changed files with 0 additions and 18 deletions
18
src/fastd.c
18
src/fastd.c
|
@ -54,12 +54,6 @@
|
||||||
#include <sodium/core.h>
|
#include <sodium/core.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_OPENSSL
|
|
||||||
#include <openssl/conf.h>
|
|
||||||
#include <openssl/evp.h>
|
|
||||||
#include <openssl/err.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_SYSTEMD
|
#ifdef ENABLE_SYSTEMD
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -500,12 +494,6 @@ static inline void init_config(int *status_fd) {
|
||||||
exit_error("unable to initialize libsodium");
|
exit_error("unable to initialize libsodium");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_OPENSSL
|
|
||||||
ERR_load_crypto_strings();
|
|
||||||
OpenSSL_add_all_algorithms();
|
|
||||||
OPENSSL_config(NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fastd_config_check();
|
fastd_config_check();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -685,12 +673,6 @@ static inline void cleanup(void) {
|
||||||
|
|
||||||
free(ctx.protocol_state);
|
free(ctx.protocol_state);
|
||||||
|
|
||||||
#ifdef ENABLE_OPENSSL
|
|
||||||
CONF_modules_free();
|
|
||||||
EVP_cleanup();
|
|
||||||
ERR_free_strings();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fastd_receive_unknown_free();
|
fastd_receive_unknown_free();
|
||||||
|
|
||||||
close_log();
|
close_log();
|
||||||
|
|
Loading…
Add table
Reference in a new issue