Control: tag -1 + patch

The attached patch checks for the OPENSSL_init_ssl symbol instead
of SSL_library_init, which has been deprecated in OpenSSL 1.1.
It also fails the build if the symbol is not found, to prevent
the silent dropping of SSL support in the future.
diff -Nru weex-2.8.2/configure.in weex-2.8.2+nmu1/configure.in
--- weex-2.8.2/configure.in	2014-09-19 23:34:27.000000000 +0200
+++ weex-2.8.2+nmu1/configure.in	2017-02-07 23:36:32.000000000 +0100
@@ -33,8 +33,8 @@
 AC_CHECK_LIB(socket,socket)
 AC_CHECK_LIB(nsl,gethostbyname)
 AC_CHECK_LIB([crypto],[CRYPTO_new_ex_data],
-    AC_CHECK_LIB([ssl],[SSL_library_init], 
-	[LIBS="$LIBS -lssl -lcrypto"; CFLAGS="$CFLAGS -DUSE_SSL=1"], [])
+    AC_CHECK_LIB([ssl],[OPENSSL_init_ssl], 
+	[LIBS="$LIBS -lssl -lcrypto"; CFLAGS="$CFLAGS -DUSE_SSL=1"], AC_MSG_ERROR([OpenSSL is not installed]))
     )
 
 dnl Checks for header files.

Attachment: signature.asc
Description: PGP signature



Reply via email to