Line 0
Link Here
|
|
|
1 |
--- xio-openssl.c.orig 2015-01-24 14:33:42 UTC |
2 |
+++ xio-openssl.c |
3 |
@@ -108,7 +108,6 @@ const struct optdesc opt_openssl_key |
4 |
const struct optdesc opt_openssl_dhparam = { "openssl-dhparam", "dh", OPT_OPENSSL_DHPARAM, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; |
5 |
const struct optdesc opt_openssl_cafile = { "openssl-cafile", "cafile", OPT_OPENSSL_CAFILE, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; |
6 |
const struct optdesc opt_openssl_capath = { "openssl-capath", "capath", OPT_OPENSSL_CAPATH, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; |
7 |
-const struct optdesc opt_openssl_egd = { "openssl-egd", "egd", OPT_OPENSSL_EGD, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; |
8 |
const struct optdesc opt_openssl_pseudo = { "openssl-pseudo", "pseudo", OPT_OPENSSL_PSEUDO, GROUP_OPENSSL, PH_SPEC, TYPE_BOOL, OFUNC_SPEC }; |
9 |
#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
10 |
const struct optdesc opt_openssl_compress = { "openssl-compress", "compress", OPT_OPENSSL_COMPRESS, GROUP_OPENSSL, PH_SPEC, TYPE_STRING, OFUNC_SPEC }; |
11 |
@@ -147,7 +146,7 @@ int xio_reset_fips_mode(void) { |
12 |
static void openssl_conn_loginfo(SSL *ssl) { |
13 |
Notice1("SSL connection using %s", SSL_get_cipher(ssl)); |
14 |
|
15 |
-#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
16 |
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP) |
17 |
{ |
18 |
const COMP_METHOD *comp, *expansion; |
19 |
|
20 |
@@ -722,7 +721,6 @@ int |
21 |
char *opt_dhparam = NULL; /* file name of DH params */ |
22 |
char *opt_cafile = NULL; /* certificate authority file */ |
23 |
char *opt_capath = NULL; /* certificate authority directory */ |
24 |
- char *opt_egd = NULL; /* entropy gathering daemon socket path */ |
25 |
#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
26 |
char *opt_compress = NULL; /* compression method */ |
27 |
#endif |
28 |
@@ -741,7 +739,6 @@ int |
29 |
retropt_string(opts, OPT_OPENSSL_CAPATH, &opt_capath); |
30 |
retropt_string(opts, OPT_OPENSSL_KEY, &opt_key); |
31 |
retropt_string(opts, OPT_OPENSSL_DHPARAM, &opt_dhparam); |
32 |
- retropt_string(opts, OPT_OPENSSL_EGD, &opt_egd); |
33 |
retropt_bool(opts,OPT_OPENSSL_PSEUDO, &opt_pseudo); |
34 |
#if OPENSSL_VERSION_NUMBER >= 0x00908000L |
35 |
retropt_string(opts, OPT_OPENSSL_COMPRESS, &opt_compress); |
36 |
@@ -877,10 +874,6 @@ int |
37 |
} |
38 |
} |
39 |
|
40 |
- if (opt_egd) { |
41 |
- sycRAND_egd(opt_egd); |
42 |
- } |
43 |
- |
44 |
if (opt_pseudo) { |
45 |
long int randdata; |
46 |
/* initialize libc random from actual microseconds */ |
47 |
@@ -1098,7 +1091,7 @@ static int openssl_SSL_ERROR_SSL(int lev |
48 |
if (e == ((ERR_LIB_RAND<<24)| |
49 |
(RAND_F_SSLEAY_RAND_BYTES<<12)| |
50 |
(RAND_R_PRNG_NOT_SEEDED)) /*0x24064064*/) { |
51 |
- Error("too few entropy; use options \"egd\" or \"pseudo\""); |
52 |
+ Error("too few entropy; use options \"pseudo\""); |
53 |
stat = STAT_NORETRY; |
54 |
} else { |
55 |
Msg2(level, "%s(): %s", funcname, ERR_error_string(e, buf)); |