0003-Fix-build-with-LibreSSL-2-7.patch 763 B

123456789101112131415161718192021222324
  1. Fix build with LibreSSL 2.7
  2. LibreSSL 2.7 implemented OpenSSL 1.1 API
  3. See also: https://reviews.freebsd.org/D14849#change-KhYbRXBMIBod
  4. Cheers,
  5. Bernard Spil (brnrd@FreeBSD.org)
  6. [Retrieved (and backported) from:
  7. https://sourceforge.net/p/trousers/bugs/234]
  8. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  9. --- ./src/trspi/crypto/openssl/rsa.c.orig 2016-11-23 12:26:19 UTC
  10. +++ ./src/trspi/crypto/openssl/rsa.c
  11. @@ -38,7 +38,7 @@
  12. #define DEBUG_print_openssl_errors()
  13. #endif
  14. -#if (OPENSSL_VERSION_NUMBER < 0x10100001L) || defined(LIBRESSL_VERSION_NUMBER)
  15. +#if (OPENSSL_VERSION_NUMBER < 0x10100001L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
  16. static int
  17. RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d)
  18. {