OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dclib/dclib-0.3.23-openssl-1.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Fix compiling when using openssl >= 1.0
  17. Origin: Gentoo Linux
  18. http://bugs.gentoo.org/330291
  19. --- dclib-0.3.23/dclib/core/cssl.cpp
  20. +++ dclib-0.3.23/dclib/core/cssl.cpp
  21. @@ -86,7 +86,11 @@
  22. /** */
  23. SSL_CTX * CSSL::InitClientCTX()
  24. {
  25. + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
  26. + const SSL_METHOD *method;
  27. + #else
  28. SSL_METHOD *method;
  29. + #endif
  30. SSL_CTX *ctx = NULL;
  31. method = SSLv23_client_method(); /* Create new client-method instance */
  32. @@ -109,7 +113,11 @@
  33. /** */
  34. SSL_CTX * CSSL::InitServerCTX()
  35. {
  36. + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
  37. + const SSL_METHOD *method;
  38. + #else
  39. SSL_METHOD *method;
  40. + #endif
  41. SSL_CTX *ctx = NULL;
  42. method = SSLv23_server_method(); /* Create new client-method instance */
  43. @@ -130,7 +138,11 @@
  44. /** */
  45. SSL_CTX * CSSL::NewTLSv1ClientCTX()
  46. {
  47. + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
  48. + const SSL_METHOD * method = TLSv1_client_method();
  49. + #else
  50. SSL_METHOD * method = TLSv1_client_method();
  51. + #endif
  52. SSL_CTX * ctx = NULL;
  53. if ( method != NULL )
  54. @@ -149,7 +161,11 @@
  55. /** */
  56. SSL_CTX * CSSL::NewTLSv1ServerCTX()
  57. {
  58. + #if OPENSSL_VERSION_NUMBER >= 0x10000000L
  59. + const SSL_METHOD * method = TLSv1_server_method();
  60. + #else
  61. SSL_METHOD * method = TLSv1_server_method();
  62. + #endif
  63. SSL_CTX * ctx = NULL;
  64. if ( method != NULL )