From: Guus Sliepen Date: Thu, 11 Oct 2018 17:47:15 +0000 (+0200) Subject: Remove the call to RAND_load_file(). X-Git-Tag: release-1.0.36~11 X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=commitdiff_plain;h=14abf170c2b39cd45fce621bdd0c905f444f5bd1 Remove the call to RAND_load_file(). It might have been necessary for some very old version of OpenSSL, but the currently minimum required version for tinc will do a proper initialization of its PRNG automatically. LibreSSL of course does the right thing too, and its RAND_load_file() is just a dummy. --- diff --git a/src/tincd.c b/src/tincd.c index b4704c4..7b882c7 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -685,13 +685,6 @@ int main(int argc, char **argv) { init_configuration(&config_tree); - /* Slllluuuuuuurrrrp! */ - - if(RAND_load_file("/dev/urandom", 1024) != 1024) { - logger(LOG_ERR, "Error initializing RNG!"); - return 1; - } - ENGINE_load_builtin_engines(); ENGINE_register_all_complete();