Line 0
Link Here
|
|
|
1 |
--- src/network/ssl/ssl.c.orig 2009-08-22 13:15:08.000000000 +0200 |
2 |
+++ src/network/ssl/ssl.c 2015-03-21 12:41:15.886709287 +0100 |
3 |
@@ -49,7 +49,10 @@ init_openssl(struct module *module) |
4 |
* cannot initialize the PRNG and so every attempt to use SSL fails. |
5 |
* It's actually an OpenSSL FAQ, and according to them, it's up to the |
6 |
* application coders to seed the RNG. -- William Yodlowsky */ |
7 |
- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) { |
8 |
+#ifndef OPENSSL_NO_EGD |
9 |
+ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) |
10 |
+#endif |
11 |
+ { |
12 |
/* Not an EGD, so read and write to it */ |
13 |
if (RAND_load_file(f_randfile, -1)) |
14 |
RAND_write_file(f_randfile); |