Lines 1-14
Link Here
|
1 |
--- src/network/ssl/ssl.c.orig 2009-08-22 13:15:08.000000000 +0200 |
1 |
--- src/network/ssl/ssl.c.orig 2019-01-09 23:04:06 UTC |
2 |
+++ src/network/ssl/ssl.c 2015-03-21 12:41:15.886709287 +0100 |
2 |
+++ src/network/ssl/ssl.c |
3 |
@@ -49,7 +49,10 @@ init_openssl(struct module *module) |
3 |
@@ -49,11 +49,17 @@ init_openssl(struct module *module) |
4 |
* cannot initialize the PRNG and so every attempt to use SSL fails. |
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 |
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 */ |
6 |
* application coders to seed the RNG. -- William Yodlowsky */ |
7 |
- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) { |
7 |
- if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) { |
|
|
8 |
+ RAND_file_name(f_randfile, sizeof(f_randfile)); |
8 |
+#ifndef OPENSSL_NO_EGD |
9 |
+#ifndef OPENSSL_NO_EGD |
9 |
+ if (RAND_egd(RAND_file_name(f_randfile, sizeof(f_randfile))) < 0) |
10 |
+ if (RAND_egd(f_randfile) < 0) |
10 |
+#endif |
|
|
11 |
+ { |
11 |
+ { |
12 |
/* Not an EGD, so read and write to it */ |
12 |
/* Not an EGD, so read and write to it */ |
|
|
13 |
+#endif |
13 |
if (RAND_load_file(f_randfile, -1)) |
14 |
if (RAND_load_file(f_randfile, -1)) |
14 |
RAND_write_file(f_randfile); |
15 |
RAND_write_file(f_randfile); |
15 |
- |
16 |
+#ifndef OPENSSL_NO_EGD |
|
|
17 |
} |
18 |
+#endif |
19 |
|
20 |
SSLeay_add_ssl_algorithms(); |
21 |
context = SSL_CTX_new(SSLv23_client_method()); |