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.

27 lines
826 B

  1. From cff1385b398b59c74c535d6c0cd9deec561101fd Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Fri, 15 Feb 2019 15:02:34 -0800
  4. Subject: [PATCH] Fix finding OpenSSL when 1.1 with deprecated APIs disabled
  5. SSL_library_init is a deprecated function. OPENSSL_init_ssl is not in 1.0.2.
  6. SSL_CTX_new is in both.
  7. ---
  8. configure.ac | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/configure.ac b/configure.ac
  11. index e8290dfd..8dde6095 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -319,7 +319,7 @@ PKG_CHECK_MODULES([OPENSSL], [openssl], [
  15. CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
  16. LIBS="$LIBS $OPENSSL_LIBS"
  17. ], [
  18. - AC_CHECK_LIB([ssl], [SSL_library_init], [
  19. + AC_CHECK_LIB([ssl], [SSL_CTX_new], [
  20. LIBS="$LIBS -lssl -lcrypto"
  21. ], [
  22. AC_MSG_ERROR([The OpenSSL library was not found])
  23. --
  24. 2.17.1