X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fcrypto.c;h=fe5a599715c93c1c1317877bb45ab1d189af5087;hb=dff94d1df4228386ea9f523b1bfc37590ca31fd8;hp=34009d69ebfe8254cec9a7dabfdbf28bd785b939;hpb=28b7a53b693f6b4e70218a926e68a36ece54cda1;p=tinc diff --git a/src/openssl/crypto.c b/src/openssl/crypto.c index 34009d69..fe5a5997 100644 --- a/src/openssl/crypto.c +++ b/src/openssl/crypto.c @@ -24,7 +24,7 @@ #include "../crypto.h" -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS static int random_fd = -1; @@ -93,7 +93,9 @@ void randomize(void *out, size_t outlen) { void crypto_init(void) { random_init(); +#if OPENSSL_VERSION_MAJOR < 3 ENGINE_load_builtin_engines(); +#endif if(!RAND_status()) { fprintf(stderr, "Not enough entropy for the PRNG!\n");