1
0

patch-xio-openssl_c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --- socat-1.7.3.0.orig/xio-openssl.c 2015-01-24 15:33:42.000000000 +0100
  2. +++ socat-1.7.3.0/xio-openssl.c 2015-12-29 23:38:49.000000000 +0100
  3. @@ -110,7 +110,7 @@ const struct optdesc opt_openssl_cafile
  4. const struct optdesc opt_openssl_capath = { "openssl-capath", "capath", OPT_OPENSSL_CAPATH, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC };
  5. const struct optdesc opt_openssl_egd = { "openssl-egd", "egd", OPT_OPENSSL_EGD, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC };
  6. const struct optdesc opt_openssl_pseudo = { "openssl-pseudo", "pseudo", OPT_OPENSSL_PSEUDO, GROUP_OPENSSL, PH_SPEC, TYPE_BOOL, OFUNC_SPEC };
  7. -#if OPENSSL_VERSION_NUMBER >= 0x00908000L
  8. +#if !defined(OPENSSL_NO_COMP)
  9. const struct optdesc opt_openssl_compress = { "openssl-compress", "compress", OPT_OPENSSL_COMPRESS, GROUP_OPENSSL, PH_SPEC, TYPE_STRING, OFUNC_SPEC };
  10. #endif
  11. #if WITH_FIPS
  12. @@ -147,7 +147,7 @@ int xio_reset_fips_mode(void) {
  13. static void openssl_conn_loginfo(SSL *ssl) {
  14. Notice1("SSL connection using %s", SSL_get_cipher(ssl));
  15. -#if OPENSSL_VERSION_NUMBER >= 0x00908000L
  16. +#if !defined(OPENSSL_NO_COMP)
  17. {
  18. const COMP_METHOD *comp, *expansion;
  19. @@ -651,7 +651,7 @@ int _xioopen_openssl_listen(struct singl
  20. #endif /* WITH_LISTEN */
  21. -#if OPENSSL_VERSION_NUMBER >= 0x00908000L
  22. +#if !defined(OPENSSL_NO_COMP)
  23. /* In OpenSSL 0.9.7 compression methods could be added using
  24. * SSL_COMP_add_compression_method(3), but the implemntation is not compatible
  25. * with the standard (RFC3749).
  26. @@ -743,7 +743,7 @@ int
  27. retropt_string(opts, OPT_OPENSSL_DHPARAM, &opt_dhparam);
  28. retropt_string(opts, OPT_OPENSSL_EGD, &opt_egd);
  29. retropt_bool(opts,OPT_OPENSSL_PSEUDO, &opt_pseudo);
  30. -#if OPENSSL_VERSION_NUMBER >= 0x00908000L
  31. +#if !defined(OPENSSL_NO_COMP)
  32. retropt_string(opts, OPT_OPENSSL_COMPRESS, &opt_compress);
  33. #endif
  34. #if WITH_FIPS
  35. @@ -877,10 +877,6 @@ int
  36. }
  37. }
  38. - if (opt_egd) {
  39. - sycRAND_egd(opt_egd);
  40. - }
  41. -
  42. if (opt_pseudo) {
  43. long int randdata;
  44. /* initialize libc random from actual microseconds */