mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
f8ee267576
This fixes the build for libressl >= 2.3 as RAND_egd has been removed as it is insecure.
12 lines
341 B
Diff
12 lines
341 B
Diff
--- a/url.c 2014-07-14 12:31:30.476563116 +0200
|
|
+++ b/url.c 2014-07-14 12:32:16.364918248 +0200
|
|
@@ -268,7 +268,7 @@ init_PRNG()
|
|
if (RAND_status())
|
|
return;
|
|
if ((file = RAND_file_name(buffer, sizeof(buffer)))) {
|
|
-#ifdef USE_EGD
|
|
+#if defined(USE_EGD) && defined(HAVE_SSL_RAND_EGD)
|
|
if (RAND_egd(file) > 0)
|
|
return;
|
|
#endif
|