1
0

0030-support-OPENSSL_NO_COMP.patch 769 B

1234567891011121314151617181920
  1. --- lua-openssl-0.6.0.old/src/ssl.c 2016-09-19 08:30:43.735075695 +0200
  2. +++ lua-openssl-0.6.0/src/ssl.c 2016-09-19 08:48:37.393737125 +0200
  3. @@ -1245,7 +1250,7 @@
  4. lua_pushinteger(L, st);
  5. return 2;
  6. }
  7. -#ifndef LIBRESSL_VERSION_NUMBER
  8. +#if !defined(OPENSSL_NO_COMP) && !defined(LIBRESSL_VERSION_NUMBER)
  9. static int openssl_ssl_current_compression(lua_State *L)
  10. {
  11. SSL* s = CHECK_OBJECT(1, SSL, "openssl.ssl");
  12. @@ -1803,7 +1808,7 @@
  13. {"getfd", openssl_ssl_getfd},
  14. {"current_cipher", openssl_ssl_current_cipher},
  15. -#ifndef LIBRESSL_VERSION_NUMBER
  16. +#if !defined(OPENSSL_NO_COMP) && !defined(LIBRESSL_VERSION_NUMBER)
  17. {"current_compression", openssl_ssl_current_compression},
  18. #endif
  19. {"getpeerverification", openssl_ssl_getpeerverification},