X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincd.c;h=c0be975ee8635e6c80763e5ed86d368c7e791c6b;hb=40731d030fef793c6b6405efd9b3e64c26c00045;hp=cb86cd8b522d5dbaf4a18c6da2f95c0d17b8eeb2;hpb=269892f70bf357de6ad66ca89daa34b225ee9e37;p=tinc diff --git a/src/tincd.c b/src/tincd.c index cb86cd8b..c0be975e 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -31,13 +31,18 @@ #include #endif +#include +#include +#include +#include +#include + #include LZO1X_H #include #include "conf.h" #include "control.h" -#include "crypto.h" #include "device.h" #include "logger.h" #include "net.h" @@ -290,7 +295,12 @@ int main(int argc, char **argv) /* Slllluuuuuuurrrrp! */ srand(time(NULL)); - crypto_init(); + RAND_load_file("/dev/urandom", 1024); + + ENGINE_load_builtin_engines(); + ENGINE_register_all_complete(); + + OpenSSL_add_all_algorithms(); if(!read_server_config()) return 1; @@ -343,7 +353,7 @@ end: exit_control(); #endif - crypto_exit(); - + EVP_cleanup(); + return status; }