Remove the call to RAND_load_file().
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Oct 2018 17:47:15 +0000 (19:47 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Oct 2018 17:47:15 +0000 (19:47 +0200)
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.

src/tincd.c

index b4704c4..7b882c7 100644 (file)
@@ -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();