Skip to contentSkip to conversation

libssl: new package

PATCH New Adam Duskett 4 participants 25 messages Aug 4, 2017 – Aug 10, 2017

lore
Share & tools
lore
#0 lore raw

cover libssl: new package

After spending over 20 hours building, testing, and compiling all of the packages currently in Buildroot that select or depend on OpenSSL against libressl, I believe it would be a good fit for a Virtual package.

As we all know, LibreSSL is supposed to be a drop-in replacement for OpenSSL 1.0.x, and for the most part it is. There are however; a few small quirks.

- Packages that support both OpenSSL 1.1 and 1.0 tend to have a macro that checks the OpenSSL version. Because LibreSSL reports as 2.5.5 (at the time of this writing), these packages try to use the 1.1 API and fail to compile. This is easily fixed with a quick addition to the version check macro in the code.

- Packages that use RAND_egd.
RAND_egd was removed in LibreSSL. However, LibreSSL does have the define OPENSSL_NO_EGD. The solution is to guard the code calling RAND_egd
(https://wiki.freebsd.org/LibreSSL/PatchingPorts#EGD)

- Packages still using SSLv3.
SSLv3 support was removed from LibreSSL. However, LibreSSL does have the define OPENSSL_NO_SSL3. The solution is to guard the code calling any SSLv3_ function with this check.
(https://wiki.freebsd.org/LibreSSL/PatchingPorts#EGD)

Other than a few packages that require a patch to fix these common errors:

- 119 packages compiled without any issues.
- 12 packages need a small patch to fix compiling against libressl.
- 2 packages need a tweak to their make files to fix compiling against libressl.
- 4 packages need to be updated to support compiling against libressl.
- 5 packages as of now can't compile against LibreSSL.

As such, 97% of all packages in BuildRoot as of today support LibreSSL with either no, or very little modification. Therefor, I believe the SSL Library is a good candidate for a virtual package.

To make this happen I perform the following steps:

- Add libssl as a new virtual package, and add OpenSSL as the only option. This prevents any package from breaking.

- Add OpenSSL as a dependency to the broken packages.

- Convert all other packages that don't have OpenSSL as a dependency from openssl to libssl.

- Bump any packages that need to be updated to build against libreSSL to the current version.

- Fix any make files that would cause LibreSSL from not working.

- Add fix-libressl-support.patch to any packages that need a patch to compile against libressl.

- Add LibreSSL as an option to libssl.

Adam Duskett (10):
libssl: new virtual package
add openssl as a dependency to certain packages convert dependencies to libssl
perl-net-ssleay: update to version 1.81
netatalk: bump to version 3.1.9
freerdp: bump to version 9a00b25adc6604f4fbe7c1d69aa4e5663d4d3863
softether: bump to version

    471de39ddf91be0a6a020a68fd6c4c20ef5ba702cb8b5da12ae8350493819ed8

libssl: fix make files for libressl
add fix-libressl-support patches
libssl: add libressl as a option

 package/Config.in                                  |   4 +-
 package/aircrack-ng/Config.in                      |   2 +-
 package/aircrack-ng/aircrack-ng.mk                 |   2 +-
 package/alljoyn-base/Config.in                     |   2 +-
 package/alljoyn-base/alljoyn-base.mk               |   2 +-
 package/alljoyn/Config.in                          |   2 +-
 package/alljoyn/alljoyn.mk                         |   2 +-
 package/android-tools/Config.in                    |   4 +-
 package/android-tools/android-tools.mk             |   6 +-
 package/apache/0003-fix-libressl-support.patch     | 277 +++++++++++++++++++++
 package/apache/apache.mk                           |   4 +-
 package/apr-util/apr-util.mk                       |   4 +-
 package/azure-iot-sdk-c/Config.in                  |   2 +-
 package/azure-iot-sdk-c/azure-iot-sdk-c.mk         |   2 +-
 package/bind/bind.mk                               |   4 +-
 package/botan/botan.mk                             |   4 +-
 package/c-icap/c-icap.mk                           |   4 +-
 package/ca-certificates/ca-certificates.mk         |  16 +-
 package/civetweb/civetweb.mk                       |   4 +-
 package/clamav/Config.in                           |   2 +-
 package/clamav/clamav.mk                           |   2 +-
 package/collectd/Config.in                         |   2 +-
 package/coreutils/coreutils.mk                     |   4 +-
 package/cryptsetup/cryptsetup.mk                   |   4 +-
 package/ctorrent/ctorrent.mk                       |   4 +-
 package/curlftpfs/Config.in                        |   2 +-
 package/dillo/dillo.mk                             |   4 +-
 package/domoticz/Config.in                         |   2 +-
 package/domoticz/domoticz.mk                       |   2 +-
 package/dovecot/Config.in                          |   2 +-
 package/dovecot/dovecot.mk                         |   2 +-
 package/easy-rsa/Config.in                         |   4 +-
 package/ecryptfs-utils/ecryptfs-utils.mk           |   4 +-
 package/efl/efl.mk                                 |   6 +-
 package/ejabberd/Config.in                         |   2 +-
 package/ejabberd/ejabberd.mk                       |   2 +-
 package/erlang-p1-tls/Config.in                    |   2 +-
 package/erlang-p1-tls/erlang-p1-tls.mk             |   2 +-
 package/erlang/erlang.mk                           |   6 +-
 package/exim/exim.mk                               |   4 +-
 package/fastd/fastd.mk                             |   4 +-
 package/fetchmail/Config.in                        |   2 +-
 package/fetchmail/fetchmail.mk                     |   2 +-
 package/ffmpeg/0002-fix-libressl-support.patch     |  74 ++++++
 package/ffmpeg/ffmpeg.mk                           |   4 +-
 package/filemq/Config.in                           |   2 +-
 package/filemq/filemq.mk                           |   2 +-
 package/flickcurl/Config.in                        |   2 +-
 .../freerdp/0001-fix-building-shared-libs.patch    |  26 --
 .../freerdp/0002-add-support-for-tz-package.patch  |  30 ---
 package/freerdp/0003-add-missing-define.patch      |  44 ----
 package/freerdp/0004-ffmpeg30.patch                |  74 ------
 package/freerdp/Config.in                          |   2 +-
 package/freerdp/freerdp.hash                       |   2 +-
 package/freerdp/freerdp.mk                         |   4 +-
 package/freeswitch/Config.in                       |   2 +-
 package/freeswitch/freeswitch.mk                   |   2 +-
 package/git-crypt/Config.in                        |   2 +-
 package/git-crypt/git-crypt.mk                     |   2 +-
 package/git/git.mk                                 |   4 +-
 package/gstreamer/gst-plugins-bad/Config.in        |   2 +-
 .../gstreamer/gst-plugins-bad/gst-plugins-bad.mk   |   2 +-
 package/gstreamer1/gst1-plugins-bad/Config.in      |   4 +-
 .../gst1-plugins-bad/gst1-plugins-bad.mk           |   4 +-
 .../heirloom-mailx/0002-fix-libressl-support.patch |  54 ++++
 package/heirloom-mailx/heirloom-mailx.mk           |   4 +-
 package/hostapd/0001-fix-libressl-support.patch    |  38 +++
 package/hostapd/hostapd.mk                         |   4 +-
 package/ibrcommon/ibrcommon.mk                     |   4 +-
 package/ibrdtnd/ibrdtnd.mk                         |   4 +-
 package/inadyn/inadyn.mk                           |   4 +-
 package/ipmitool/Config.in                         |   2 +-
 package/ipmitool/ipmitool.mk                       |   2 +-
 package/ipmiutil/ipmiutil.mk                       |   4 +-
 package/ipsec-tools/Config.in                      |   2 +-
 package/ipsec-tools/ipsec-tools.mk                 |   2 +-
 package/iputils/iputils.mk                         |   4 +-
 package/irssi/Config.in                            |   2 +-
 package/irssi/irssi.mk                             |   2 +-
 package/janus-gateway/Config.in                    |   2 +-
 package/keepalived/Config.in                       |   2 +-
 package/keepalived/keepalived.mk                   |   2 +-
 package/kodi/Config.in                             |   2 +-
 package/kodi/kodi.mk                               |   2 +-
 package/lftp/0003-libressl-support.patch           |  35 +++
 package/lftp/Config.in                             |   2 +-
 package/lftp/lftp.mk                               |   4 +-
 package/libarchive/libarchive.mk                   |   4 +-
 package/libcurl/libcurl.mk                         |   6 +-
 package/libeXosip2/libeXosip2.mk                   |   4 +-
 package/libesmtp/libesmtp.mk                       |   2 +-
 package/libevent/0002-fix-libressl-support.patch   |  26 ++
 package/libevent/libevent.mk                       |   4 +-
 package/libfreefare/Config.in                      |   2 +-
 package/libfreefare/libfreefare.mk                 |   2 +-
 package/libldns/Config.in                          |   2 +-
 package/libldns/libldns.mk                         |   2 +-
 package/liboauth/Config.in                         |   2 +-
 package/liboauth/liboauth.mk                       |   2 +-
 package/libpjsip/libpjsip.mk                       |   4 +-
 package/libressl/Config.in                         |   2 +-
 package/libressl/libressl.mk                       |   2 +
 package/libshout/libshout.mk                       |   4 +-
 package/libsrtp/libsrtp.mk                         |   4 +-
 package/libssh/Config.in                           |   2 +-
 package/libssh/libssh.mk                           |   2 +-
 package/libssh2/Config.in                          |   2 +-
 package/libssh2/libssh2.mk                         |   2 +-
 package/libssl/Config.in                           |  27 ++
 package/libssl/libssl.mk                           |   8 +
 package/libstrophe/Config.in                       |   2 +-
 package/libstrophe/libstrophe.mk                   |   2 +-
 package/libvncserver/libvncserver.mk               |   4 +-
 package/libwebsock/libwebsock.mk                   |   4 +-
 package/libwebsockets/libwebsockets.mk             |   2 +-
 package/lighttpd/Config.in                         |   2 +-
 package/lighttpd/lighttpd.mk                       |   4 +-
 package/links/links.mk                             |   4 +-
 package/luacrypto/Config.in                        |   2 +-
 package/luacrypto/luacrypto.mk                     |   2 +-
 package/luaossl/Config.in                          |   2 +-
 package/luaossl/luaossl.mk                         |   2 +-
 package/luasec/Config.in                           |   2 +-
 package/luasec/luasec.mk                           |   2 +-
 package/luvi/Config.in                             |   5 +-
 package/mariadb/mariadb.mk                         |   2 +-
 package/mongodb/mongodb.mk                         |   4 +-
 package/mongoose/mongoose.mk                       |   4 +-
 package/monit/monit.mk                             |   4 +-
 package/mosh/Config.in                             |   2 +-
 package/mosh/mosh.mk                               |   4 +-
 package/mosquitto/0001-fix-libressl-support.patch  |  63 +++++
 package/mosquitto/mosquitto.mk                     |   7 +-
 package/msmtp/msmtp.mk                             |   4 +-
 package/mutt/mutt.mk                               |   4 +-
 package/mysql/Config.in                            |   2 +-
 package/neon/Config.in                             |   2 +-
 package/neon/neon.mk                               |   2 +-
 package/netatalk/Config.in                         |   2 +-
 package/netatalk/netatalk.hash                     |   6 +-
 package/netatalk/netatalk.mk                       |   4 +-
 package/netsnmp/Config.in                          |   2 +-
 package/netsnmp/netsnmp.mk                         |   4 +-
 package/nginx-upload/Config.in                     |   2 +-
 package/nginx-upload/nginx-upload.mk               |   2 +-
 package/nginx/Config.in                            |  10 +-
 package/nginx/nginx.mk                             |  10 +-
 package/nmap/nmap.mk                               |   4 +-
 package/nodejs/Config.in                           |   6 +-
 package/ntp/0004-libressl-support.patch            | 106 ++++++++
 package/ntp/Config.in                              |   2 +-
 package/ntp/ntp.mk                                 |   2 +-
 package/nut/nut.mk                                 |   4 +-
 package/omniorb/omniorb.mk                         |   4 +-
 package/openipmi/openipmi.mk                       |   4 +-
 package/openldap/0004-fix-libressl-support.patch   |  99 ++++++++
 package/openldap/openldap.mk                       |   8 +-
 package/openssh/Config.in                          |   2 +-
 package/openssh/openssh.mk                         |   2 +-
 package/openssl/Config.in                          |   1 +
 package/openssl/openssl.mk                         |   1 +
 package/openswan/openswan.mk                       |   4 +-
 package/openvmtools/openvmtools.mk                 |   4 +-
 package/openvpn/Config.in                          |   2 +-
 package/openvpn/openvpn.mk                         |   2 +-
 package/opusfile/0001-fix-libressl-support.patch   |  82 ++++++
 package/opusfile/opusfile.mk                       |   4 +-
 package/oracle-mysql/oracle-mysql.mk               |   4 +-
 package/paho-mqtt-c/paho-mqtt-c.mk                 |   4 +-
 package/perl-crypt-openssl-random/Config.in        |   2 +-
 .../perl-crypt-openssl-random.mk                   |   2 +-
 package/perl-net-ssleay/Config.in                  |   2 +-
 package/perl-net-ssleay/perl-net-ssleay.hash       |   4 +-
 package/perl-net-ssleay/perl-net-ssleay.mk         |   4 +-
 package/php/php.mk                                 |   2 +-
 package/poco/Config.in                             |   4 +-
 package/postgresql/postgresql.mk                   |   4 +-
 package/pound/Config.in                            |   2 +-
 package/pound/pound.mk                             |   2 +-
 package/pure-ftpd/pure-ftpd.mk                     |   4 +-
 package/python-cryptography/Config.in              |   5 +-
 package/python/Config.in                           |   4 +-
 package/python/python.mk                           |   4 +-
 package/python3/Config.in                          |   2 +-
 package/python3/python3.mk                         |   2 +-
 package/qt-webkit-kiosk/Config.in                  |   2 +-
 package/qt/Config.in                               |   2 +-
 package/qt/qt.mk                                   |   2 +-
 package/qt5/qt5base/qt5base.mk                     |   4 +-
 package/qt5/qt5enginio/Config.in                   |   2 +-
 package/qt5/qt5enginio/qt5enginio.mk               |   2 +-
 package/rabbitmq-c/rabbitmq-c.mk                   |   4 +-
 package/rabbitmq-server/Config.in                  |   2 +-
 package/rauc/Config.in                             |   5 +-
 package/rdesktop/Config.in                         |   2 +-
 package/rdesktop/rdesktop.mk                       |   2 +-
 package/rhash/rhash.mk                             |   4 +-
 package/rtmpdump/rtmpdump.mk                       |   4 +-
 package/rtorrent/Config.in                         |   2 +-
 package/ruby/ruby.mk                               |   4 +-
 package/sconeserver/sconeserver.mk                 |   4 +-
 package/scrypt/Config.in                           |   2 +-
 package/scrypt/scrypt.mk                           |   2 +-
 package/shairport-sync/Config.in                   |   2 +-
 package/shairport-sync/shairport-sync.mk           |   6 +-
 package/shellinabox/Config.in                      |   2 +-
 package/shellinabox/shellinabox.mk                 |   2 +-
 package/sngrep/sngrep.mk                           |   4 +-
 package/snmppp/Config.in                           |   2 +-
 package/snmppp/snmppp.mk                           |   2 +-
 package/socat/socat.mk                             |   4 +-
 package/sofia-sip/sofia-sip.mk                     |   4 +-
 package/softether/0010-fix-libressl-support.patch  |  33 +++
 package/softether/Config.in                        |   2 +-
 package/softether/softether.hash                   |   2 +-
 package/softether/softether.mk                     |   6 +-
 package/spice/Config.in                            |   2 +-
 package/spice/spice.mk                             |   2 +-
 package/sqlcipher/Config.in                        |   2 +-
 package/sqlcipher/sqlcipher.mk                     |   2 +-
 package/squid/squid.mk                             |   4 +-
 package/strongswan/Config.in                       |   2 +-
 package/stunnel/Config.in                          |   5 +-
 package/swupdate/Config.in                         |   2 +-
 package/swupdate/swupdate.mk                       |   4 +-
 package/sylpheed/sylpheed.mk                       |   4 +-
 package/synergy/Config.in                          |   2 +-
 package/synergy/synergy.mk                         |   2 +-
 package/syslog-ng/Config.in                        |   2 +-
 package/syslog-ng/syslog-ng.mk                     |   2 +-
 package/thrift/Config.in                           |   2 +-
 package/tinc/Config.in                             |   2 +-
 package/tinc/tinc.mk                               |   2 +-
 package/tn5250/tn5250.mk                           |   4 +-
 package/tor/Config.in                              |   2 +-
 package/tor/tor.mk                                 |   2 +-
 package/tpm-tools/Config.in                        |   2 +-
 package/tpm-tools/tpm-tools.mk                     |   2 +-
 package/transmission/Config.in                     |   2 +-
 package/transmission/transmission.mk               |   2 +-
 package/trousers/Config.in                         |   2 +-
 package/trousers/trousers.mk                       |   2 +-
 package/turbolua/turbolua.mk                       |   4 +-
 package/tvheadend/Config.in                        |   2 +-
 package/uboot-tools/Config.in                      |   2 +-
 package/uboot-tools/uboot-tools.mk                 |   4 +-
 package/ustream-ssl/Config.in                      |   2 +-
 package/ustream-ssl/ustream-ssl.mk                 |   2 +-
 package/vboot-utils/vboot-utils.mk                 |   2 +-
 package/vsftpd/vsftpd.mk                           |   4 +-
 package/vtun/Config.in                             |   2 +-
 package/vtun/vtun.mk                               |   2 +-
 package/wget/wget.mk                               |   4 +-
 .../wpa_supplicant/0001-fix-libressl-support.patch |  70 ++++++
 package/wpa_supplicant/wpa_supplicant.mk           |   6 +-
 package/x11r7/xserver_xorg-server/Config.in        |   2 +-
 .../xserver_xorg-server/xserver_xorg-server.mk     |   4 +-
 package/x11vnc/x11vnc.mk                           |   4 +-
 package/xen/Config.in                              |   2 +-
 package/xen/xen.mk                                 |   2 +-
 package/xl2tp/Config.in                            |   2 +-
 package/xl2tp/xl2tp.mk                             |   2 +-
 package/znc/znc.mk                                 |   4 +-
 263 files changed, 1379 insertions(+), 530 deletions(-)
 create mode 100644 package/apache/0003-fix-libressl-support.patch
 create mode 100644 package/ffmpeg/0002-fix-libressl-support.patch
 delete mode 100644 package/freerdp/0001-fix-building-shared-libs.patch
 delete mode 100644 package/freerdp/0002-add-support-for-tz-package.patch
 delete mode 100644 package/freerdp/0003-add-missing-define.patch
 delete mode 100644 package/freerdp/0004-ffmpeg30.patch
 create mode 100644 package/heirloom-mailx/0002-fix-libressl-support.patch
 create mode 100644 package/hostapd/0001-fix-libressl-support.patch
 create mode 100644 package/lftp/0003-libressl-support.patch
 create mode 100644 package/libevent/0002-fix-libressl-support.patch
 create mode 100644 package/libssl/Config.in
 create mode 100644 package/libssl/libssl.mk
 create mode 100644 package/mosquitto/0001-fix-libressl-support.patch
 create mode 100644 package/ntp/0004-libressl-support.patch
 create mode 100644 package/openldap/0004-fix-libressl-support.patch
 create mode 100644 package/opusfile/0001-fix-libressl-support.patch
 create mode 100644 package/softether/0010-fix-libressl-support.patch
 create mode 100644 package/wpa_supplicant/0001-fix-libressl-support.patch
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/10 libssl: new virtual package

To start the conversion process to a virtual package, libssl is added with only support for OpenSSL. This insures that packages relying on OpenSSL won't break.

---
 package/Config.in          |  4 +---
 package/libssl/Config.in   | 26 ++++++++++++++++++++++++++
 package/libssl/libssl.mk   |  8 ++++++++
 package/openssl/Config.in  |  1 +
 package/openssl/openssl.mk |  1 +
 5 files changed, 37 insertions(+), 3 deletions(-)
 create mode 100644 package/libssl/Config.in
 create mode 100644 package/libssl/libssl.mk
package/Config.in +1 -3
index b5170b044..f8e9d2990 100644
@@ -998,13 +998,11 @@ menu "Crypto"
 	source "package/libsodium/Config.in"
 	source "package/libssh/Config.in"
 	source "package/libssh2/Config.in"
+	source "package/libssl/Config.in"
 	source "package/libtomcrypt/Config.in"
 	source "package/libuecc/Config.in"
 	source "package/mbedtls/Config.in"
 	source "package/nettle/Config.in"
-	# libressl is a openssl replacement
-	source "package/libressl/Config.in"
-	source "package/openssl/Config.in"
 	source "package/rhash/Config.in"
 	source "package/tinydtls/Config.in"
 	source "package/trousers/Config.in"
package/libssl/Config.in new file +26 -0
new file mode 100644
index 000000000..5f3d2fc2a
@@ -0,0 +1,26 @@
+config BR2_PACKAGE_LIBSSL
+	bool "libssl support"
+	help
+	  Select the desired ssl library provider.
+
+if BR2_PACKAGE_LIBSSL
+
+choice
+	prompt "ssl variant"
+	default BR2_PACKAGE_OPENSSL
+	help
+	  Select OpenSSL or LibreSSL.
+
+	source "package/openssl/Config.in"
+
+endchoice
+
+config BR2_PACKAGE_HAS_LIBSSL
+	bool
+
+config BR2_PACKAGE_PROVIDES_LIBSSL
+	string
+	default "openssl"    if BR2_PACKAGE_OPENSSL
+	default "libressl" if BR2_PACKAGE_LIBRESSL
+
+endif
package/libssl/libssl.mk new file +8 -0
new file mode 100644
index 000000000..d19c3a9da
@@ -0,0 +1,8 @@
+################################################################################
+#
+# libssl
+#
+################################################################################
+
+$(eval $(host-virtual-package))
+$(eval $(virtual-package))
package/openssl/Config.in +1 -0
index e08b648ba..8281ef064 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_OPENSSL
 	bool "openssl"
+	select BR2_PACKAGE_HAS_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  A collaborative effort to develop a robust, commercial-grade, fully
package/openssl/openssl.mk +1 -0
index ec8e6f204..eddf99b59 100644
@@ -13,6 +13,7 @@ OPENSSL_DEPENDENCIES = zlib
 HOST_OPENSSL_DEPENDENCIES = host-zlib
 OPENSSL_TARGET_ARCH = generic32
 OPENSSL_CFLAGS = $(TARGET_CFLAGS)
+OPENSSL_PROVIDES = libssl
 OPENSSL_PATCH = \
 	https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/openssl/files/openssl-1.0.2d-parallel-build.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d \
 	https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/openssl/files/openssl-1.0.2a-parallel-obj-headers.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d \
Signature · 1 line
2.13.3
#2 lore raw

PATCH 1/10 libssl: new virtual package

On 04-08-17 20:55, Adam Duskett wrote:
[snip]

package/libssl/Config.in line 14

Quoted 7 lines
package/libssl/Config.in new file +7 -0
+choice
+	prompt "ssl variant"
+	default BR2_PACKAGE_OPENSSL
+	help
+	  Select OpenSSL or LibreSSL.
+
+	source "package/openssl/Config.in"

Don't ever source a Config.in file within a choice. It's too easy to add more
options in the sourced Config.in file and that will fail dramatically. Instead, move the symbol definition into the choice (possibly deleting the original Config.in file).
[snip]

package/libssl/libssl.mk line 8

Quoted 10 lines

+++ b/package/libssl/libssl.mk

package/libssl/libssl.mk new file +8 -0
@@ -0,0 +1,8 @@
+################################################################################
+#
+# libssl
+#
+################################################################################
+
+$(eval $(host-virtual-package))
+$(eval $(virtual-package))

We usually do first target then host.

Regards,
Arnout

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#3 lore raw

PATCH 2/10 add openssl as a dependency to certain packages

In reply to Adam Duskett

The following packages only work with OpenSSL. In anticipation for the next patch, these packages must explicitly rely on OpenSSL in thier Config.in files.

The reason for each package is as follows:

luvi:
Uses TS_RESP_CTX_set_time_cb which is removed from LibreSSL. This is the only package that currently uses this API in BuildRoot.

nodejs:
Bundles it's own OpenSSL variant, which is tightly intigrated with node. There is a ongoing effort to make the SSL library agnostic. Gentoo has provided a patch to make NodeJS work with LibreSSL, but I haven't been able to test it.

python-cryptography:
Newer versions compile against LibreSSL, however there are some issues running the latest version when cross compiling.

rauc:
Rauc uses smc exclusively, which LibreSSL does not support.

stunnel:
The author of stunnel has on two occasions said he will now allow Stunnel to be compiled against LibreSSL.

---
 package/luvi/Config.in                | 5 +++--
 package/nodejs/Config.in              | 6 +++++-
 package/python-cryptography/Config.in | 5 ++++-
 package/rauc/Config.in                | 5 ++++-
 package/stunnel/Config.in             | 5 ++++-
 5 files changed, 20 insertions(+), 6 deletions(-)
package/luvi/Config.in +3 -2
index c9fd41739..c8921c320 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LUVI
 	depends on !BR2_STATIC_LIBS # libuv
 	depends on BR2_PACKAGE_LUAJIT
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
+	depends on BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_LIBUV
 	select BR2_PACKAGE_LUV
 	help
@@ -29,5 +30,5 @@ comment "luvi needs a toolchain w/ NPTL, dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 
-comment "luvi needs LuaJIT"
-	depends on !BR2_PACKAGE_LUAJIT
+comment "luvi needs LuaJIT and OpenSSL"
+	depends on !BR2_PACKAGE_LUAJIT || BR2_PACKAGE_LIBRESSL
package/nodejs/Config.in +5 -1
index 345fe1047..921f3c609 100644
@@ -13,6 +13,9 @@ comment "nodejs needs a toolchain w/ C++, dynamic library, NPTL, gcc >= 4.8, wch
 	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
 		!BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
 
+comment "nodejs needs OpenSSL"
+	depends on !BR2_PACKAGE_OPENSSL
+
 config BR2_PACKAGE_NODEJS
 	bool "nodejs"
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
@@ -21,6 +24,7 @@ config BR2_PACKAGE_NODEJS
 	depends on BR2_HOST_GCC_AT_LEAST_4_8
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
 	depends on BR2_USE_WCHAR
+	depends on BR2_PACKAGE_OPENSSL
 	# uses fork()
 	depends on BR2_USE_MMU
 	# uses dlopen(). On ARMv5, we could technically support static
@@ -39,7 +43,7 @@ if BR2_PACKAGE_NODEJS
 
 config BR2_PACKAGE_NODEJS_NPM
 	bool "NPM for the target"
-	select BR2_PACKAGE_OPENSSL
+	depends on BR2_PACKAGE_OPENSSL
 	help
 	  NPM is the package manager for the Node JavaScript platform.
 	  Note that enabling NPM on the target also selects OpenSSL for the
package/python-cryptography/Config.in +4 -1
index 9827cf82b..19389d1bc 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
 	bool "python-cryptography"
 	depends on BR2_INSTALL_LIBSTDCPP # python-pyasn
-	select BR2_PACKAGE_OPENSSL
+	depends on BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_PYTHON_CFFI # runtime
 	select BR2_PACKAGE_PYTHON_IDNA # runtime
 	select BR2_PACKAGE_PYTHON_PYASN # runtime
@@ -21,3 +21,6 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
 
 comment "python-cryptography needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
+	
+comment "python-cryptography needs OpenSSL"
+	depends on !BR2_PACKAGE_OPENSSL
package/rauc/Config.in +4 -1
index 6433b827d..7fe4b9b7c 100644
@@ -3,8 +3,8 @@ config BR2_PACKAGE_RAUC
 	depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
 	depends on BR2_USE_MMU # glib2
 	depends on BR2_USE_WCHAR # glib2
+	depends on BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_LIBGLIB2
-	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_DBUS # run-time dependency
 	help
 	  RAUC is the Robust Auto-Update Controller developed by
@@ -35,3 +35,6 @@ endif
 comment "rauc needs a toolchain w/ wchar, threads"
 	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU
+
+comment "rauc needs OpenSSL"
+	depends on !BR2_PACKAGE_OPENSSL
package/stunnel/Config.in +4 -1
index e4a956770..e9bc48f6c 100644
@@ -1,9 +1,12 @@
 config BR2_PACKAGE_STUNNEL
 	bool "stunnel"
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_OPENSSL
+	depends on BR2_PACKAGE_OPENSSL
 	help
 	  Stunnel is a program that wraps any TCP connection with an SSL
 	  connection.
 
 	  http://www.stunnel.org/
+
+comment "stunnel needs OpenSSL"
+	depends on !BR2_PACKAGE_OPENSSL
Signature · 1 line
2.13.3
#4 lore raw

PATCH 2/10 add openssl as a dependency to certain packages

On 04-08-17 20:55, Adam Duskett wrote:
[snip]

package/luvi/Config.in config BR2_PACKAGE_LUVI · line 8

Quoted 9 lines
package/luvi/Config.in +1 -0
index c9fd41739..c8921c320 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LUVI
 	depends on !BR2_STATIC_LIBS # libuv
 	depends on BR2_PACKAGE_LUAJIT
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
+	depends on BR2_PACKAGE_OPENSSL

This makes no sense to me. luvi can be built without openssl, so why should it
depend on it? In fact, the only thing you should do is NOT modify the .mk file, then lua-openssl will not be used if libressl is selected.

[snip]

Quoted 15 lines
package/nodejs/Config.in +3 -0
index 345fe1047..921f3c609 100644
@@ -13,6 +13,9 @@ comment "nodejs needs a toolchain w/ C++, dynamic library, NPTL, gcc >= 4.8, wch
 	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
 		!BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
 
+comment "nodejs needs OpenSSL"
+	depends on !BR2_PACKAGE_OPENSSL
+
 config BR2_PACKAGE_NODEJS
 	bool "nodejs"
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv

package/nodejs/Config.in config BR2_PACKAGE_NODEJS · line 27

Quoted 4 lines
package/nodejs/Config.in +1 -0
@@ -21,6 +24,7 @@ config BR2_PACKAGE_NODEJS
 	depends on BR2_HOST_GCC_AT_LEAST_4_8
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
 	depends on BR2_USE_WCHAR
+	depends on BR2_PACKAGE_OPENSSL

Similar situation here, I think.

Regards,
Arnout

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#5 lore raw

PATCH 2/10 add openssl as a dependency to certain packages

In reply to Adam Duskett

Hello Adam,

Quoted 22 lines · Adam Duskett

The following packages only work with OpenSSL. In anticipation for the next patch, these packages must explicitly rely on OpenSSL in thier Config.in files.

The reason for each package is as follows:

luvi:
Uses TS_RESP_CTX_set_time_cb which is removed from LibreSSL. This is the only package that currently uses this API in BuildRoot.

nodejs:
Bundles it's own OpenSSL variant, which is tightly intigrated with node. There is a ongoing effort to make the SSL library agnostic. Gentoo has provided a patch to make NodeJS work with LibreSSL, but I haven't been able to test it.

python-cryptography:
Newer versions compile against LibreSSL, however there are some issues running the latest version when cross compiling.

Quoted 5 lines

rauc:
Rauc uses smc exclusively, which LibreSSL does not support.

stunnel:
The author of stunnel has on two occasions said he will now

'not' instead of 'now' I think.

[snip]

Best wishes,
Marcus

#6 lore raw

PATCH 3/10 convert dependencies to libssl

In reply to Adam Duskett

Convert the remaining packages that select or depend on OpenSSL and OpenSSL-host to instead select or depend on libssl or libssl-host.

---
 package/aircrack-ng/Config.in                                  |  2 +-
 package/aircrack-ng/aircrack-ng.mk                             |  2 +-
 package/alljoyn-base/Config.in                                 |  2 +-
 package/alljoyn-base/alljoyn-base.mk                           |  2 +-
 package/alljoyn/Config.in                                      |  2 +-
 package/alljoyn/alljoyn.mk                                     |  2 +-
 package/android-tools/Config.in                                |  4 ++--
 package/android-tools/android-tools.mk                         |  6 +++---
 package/apache/apache.mk                                       |  4 ++--
 package/apr-util/apr-util.mk                                   |  4 ++--
 package/azure-iot-sdk-c/Config.in                              |  2 +-
 package/azure-iot-sdk-c/azure-iot-sdk-c.mk                     |  2 +-
 package/bind/bind.mk                                           |  4 ++--
 package/botan/botan.mk                                         |  4 ++--
 package/c-icap/c-icap.mk                                       |  4 ++--
 package/ca-certificates/ca-certificates.mk                     |  2 +-
 package/civetweb/civetweb.mk                                   |  4 ++--
 package/clamav/Config.in                                       |  2 +-
 package/clamav/clamav.mk                                       |  2 +-
 package/collectd/Config.in                                     |  2 +-
 package/coreutils/coreutils.mk                                 |  4 ++--
 package/cryptsetup/cryptsetup.mk                               |  4 ++--
 package/ctorrent/ctorrent.mk                                   |  4 ++--
 package/curlftpfs/Config.in                                    |  2 +-
 package/dillo/dillo.mk                                         |  4 ++--
 package/domoticz/Config.in                                     |  2 +-
 package/domoticz/domoticz.mk                                   |  2 +-
 package/dovecot/Config.in                                      |  2 +-
 package/dovecot/dovecot.mk                                     |  2 +-
 package/easy-rsa/Config.in                                     |  4 ++--
 package/ecryptfs-utils/ecryptfs-utils.mk                       |  4 ++--
 package/efl/efl.mk                                             |  6 +++---
 package/ejabberd/Config.in                                     |  2 +-
 package/ejabberd/ejabberd.mk                                   |  2 +-
 package/erlang-p1-tls/Config.in                                |  2 +-
 package/erlang-p1-tls/erlang-p1-tls.mk                         |  2 +-
 package/erlang/erlang.mk                                       |  6 +++---
 package/exim/exim.mk                                           |  4 ++--
 package/fastd/fastd.mk                                         |  4 ++--
 package/fetchmail/Config.in                                    |  2 +-
 package/fetchmail/fetchmail.mk                                 |  2 +-
 package/ffmpeg/ffmpeg.mk                                       |  4 ++--
 package/filemq/Config.in                                       |  2 +-
 package/filemq/filemq.mk                                       |  2 +-
 package/flickcurl/Config.in                                    |  2 +-
 package/freerdp/Config.in                                      |  2 +-
 package/freerdp/freerdp.mk                                     |  2 +-
 package/freeswitch/Config.in                                   |  2 +-
 package/freeswitch/freeswitch.mk                               |  2 +-
 package/git-crypt/Config.in                                    |  2 +-
 package/git-crypt/git-crypt.mk                                 |  2 +-
 package/git/git.mk                                             |  4 ++--
 package/gstreamer/gst-plugins-bad/Config.in                    |  2 +-
 package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk           |  2 +-
 package/gstreamer1/gst1-plugins-bad/Config.in                  |  4 ++--
 package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk        |  4 ++--
 package/heirloom-mailx/heirloom-mailx.mk                       |  4 ++--
 package/hostapd/hostapd.mk                                     |  4 ++--
 package/ibrcommon/ibrcommon.mk                                 |  4 ++--
 package/ibrdtnd/ibrdtnd.mk                                     |  4 ++--
 package/inadyn/inadyn.mk                                       |  4 ++--
 package/ipmitool/Config.in                                     |  2 +-
 package/ipmitool/ipmitool.mk                                   |  2 +-
 package/ipmiutil/ipmiutil.mk                                   |  4 ++--
 package/ipsec-tools/Config.in                                  |  2 +-
 package/ipsec-tools/ipsec-tools.mk                             |  2 +-
 package/iputils/iputils.mk                                     |  4 ++--
 package/irssi/Config.in                                        |  2 +-
 package/irssi/irssi.mk                                         |  2 +-
 package/janus-gateway/Config.in                                |  2 +-
 package/keepalived/Config.in                                   |  2 +-
 package/keepalived/keepalived.mk                               |  2 +-
 package/kodi/Config.in                                         |  2 +-
 package/kodi/kodi.mk                                           |  2 +-
 package/lftp/Config.in                                         |  2 +-
 package/lftp/lftp.mk                                           |  4 ++--
 package/libarchive/libarchive.mk                               |  4 ++--
 package/libcurl/libcurl.mk                                     |  6 +++---
 package/libeXosip2/libeXosip2.mk                               |  4 ++--
 package/libesmtp/libesmtp.mk                                   |  2 +-
 package/libevent/libevent.mk                                   |  4 ++--
 package/libfreefare/Config.in                                  |  2 +-
 package/libfreefare/libfreefare.mk                             |  2 +-
 package/libldns/Config.in                                      |  2 +-
 package/libldns/libldns.mk                                     |  2 +-
 package/liboauth/Config.in                                     |  2 +-
 package/liboauth/liboauth.mk                                   |  2 +-
 package/libpjsip/libpjsip.mk                                   |  4 ++--
 package/libshout/libshout.mk                                   |  4 ++--
 package/libsrtp/libsrtp.mk                                     |  4 ++--
 package/libssh/Config.in                                       |  2 +-
 package/libssh/libssh.mk                                       |  2 +-
 package/libssh2/Config.in                                      |  2 +-
 package/libssh2/libssh2.mk                                     |  2 +-
 package/libstrophe/Config.in                                   |  2 +-
 package/libstrophe/libstrophe.mk                               |  2 +-
 package/libvncserver/libvncserver.mk                           |  4 ++--
 package/libwebsock/libwebsock.mk                               |  4 ++--
 package/libwebsockets/libwebsockets.mk                         |  2 +-
 package/lighttpd/Config.in                                     |  2 +-
 package/lighttpd/lighttpd.mk                                   |  4 ++--
 package/links/links.mk                                         |  4 ++--
 package/luacrypto/Config.in                                    |  2 +-
 package/luacrypto/luacrypto.mk                                 |  2 +-
 package/luaossl/Config.in                                      |  2 +-
 package/luaossl/luaossl.mk                                     |  2 +-
 package/luasec/Config.in                                       |  2 +-
 package/luasec/luasec.mk                                       |  2 +-
 package/mariadb/mariadb.mk                                     |  2 +-
 package/mongodb/mongodb.mk                                     |  4 ++--
 package/mongoose/mongoose.mk                                   |  4 ++--
 package/monit/monit.mk                                         |  4 ++--
 package/mosh/Config.in                                         |  2 +-
 package/mosh/mosh.mk                                           |  4 ++--
 package/mosquitto/mosquitto.mk                                 |  4 ++--
 package/msmtp/msmtp.mk                                         |  4 ++--
 package/mutt/mutt.mk                                           |  4 ++--
 package/mysql/Config.in                                        |  2 +-
 package/neon/Config.in                                         |  2 +-
 package/neon/neon.mk                                           |  2 +-
 package/netatalk/Config.in                                     |  2 +-
 package/netatalk/netatalk.mk                                   |  2 +-
 package/netsnmp/Config.in                                      |  2 +-
 package/netsnmp/netsnmp.mk                                     |  4 ++--
 package/nginx-upload/Config.in                                 |  2 +-
 package/nginx-upload/nginx-upload.mk                           |  2 +-
 package/nginx/Config.in                                        | 10 +++++-----
 package/nginx/nginx.mk                                         | 10 +++++-----
 package/nmap/nmap.mk                                           |  4 ++--
 package/ntp/Config.in                                          |  2 +-
 package/ntp/ntp.mk                                             |  2 +-
 package/nut/nut.mk                                             |  4 ++--
 package/omniorb/omniorb.mk                                     |  4 ++--
 package/openipmi/openipmi.mk                                   |  4 ++--
 package/openldap/openldap.mk                                   |  8 ++++----
 package/openssh/Config.in                                      |  2 +-
 package/openssh/openssh.mk                                     |  2 +-
 package/openswan/openswan.mk                                   |  4 ++--
 package/openvmtools/openvmtools.mk                             |  4 ++--
 package/openvpn/Config.in                                      |  2 +-
 package/openvpn/openvpn.mk                                     |  2 +-
 package/opusfile/opusfile.mk                                   |  4 ++--
 package/oracle-mysql/oracle-mysql.mk                           |  4 ++--
 package/paho-mqtt-c/paho-mqtt-c.mk                             |  4 ++--
 package/perl-crypt-openssl-random/Config.in                    |  2 +-
 package/perl-crypt-openssl-random/perl-crypt-openssl-random.mk |  2 +-
 package/perl-net-ssleay/Config.in                              |  2 +-
 package/perl-net-ssleay/perl-net-ssleay.mk                     |  2 +-
 package/php/php.mk                                             |  2 +-
 package/poco/Config.in                                         |  4 ++--
 package/postgresql/postgresql.mk                               |  4 ++--
 package/pound/Config.in                                        |  2 +-
 package/pound/pound.mk                                         |  2 +-
 package/pure-ftpd/pure-ftpd.mk                                 |  4 ++--
 package/python/Config.in                                       |  4 ++--
 package/python/python.mk                                       |  4 ++--
 package/python3/Config.in                                      |  2 +-
 package/python3/python3.mk                                     |  2 +-
 package/qt-webkit-kiosk/Config.in                              |  2 +-
 package/qt/Config.in                                           |  2 +-
 package/qt/qt.mk                                               |  2 +-
 package/qt5/qt5base/qt5base.mk                                 |  4 ++--
 package/qt5/qt5enginio/Config.in                               |  2 +-
 package/qt5/qt5enginio/qt5enginio.mk                           |  2 +-
 package/rabbitmq-c/rabbitmq-c.mk                               |  4 ++--
 package/rabbitmq-server/Config.in                              |  2 +-
 package/rdesktop/Config.in                                     |  2 +-
 package/rdesktop/rdesktop.mk                                   |  2 +-
 package/rhash/rhash.mk                                         |  4 ++--
 package/rtmpdump/rtmpdump.mk                                   |  4 ++--
 package/rtorrent/Config.in                                     |  2 +-
 package/ruby/ruby.mk                                           |  4 ++--
 package/sconeserver/sconeserver.mk                             |  4 ++--
 package/scrypt/Config.in                                       |  2 +-
 package/scrypt/scrypt.mk                                       |  2 +-
 package/shairport-sync/Config.in                               |  2 +-
 package/shairport-sync/shairport-sync.mk                       |  6 +++---
 package/shellinabox/Config.in                                  |  2 +-
 package/shellinabox/shellinabox.mk                             |  2 +-
 package/sngrep/sngrep.mk                                       |  4 ++--
 package/snmppp/Config.in                                       |  2 +-
 package/snmppp/snmppp.mk                                       |  2 +-
 package/socat/socat.mk                                         |  4 ++--
 package/sofia-sip/sofia-sip.mk                                 |  4 ++--
 package/softether/Config.in                                    |  2 +-
 package/softether/softether.mk                                 |  4 ++--
 package/spice/Config.in                                        |  2 +-
 package/spice/spice.mk                                         |  2 +-
 package/sqlcipher/Config.in                                    |  2 +-
 package/sqlcipher/sqlcipher.mk                                 |  2 +-
 package/squid/squid.mk                                         |  4 ++--
 package/strongswan/Config.in                                   |  2 +-
 package/swupdate/Config.in                                     |  2 +-
 package/swupdate/swupdate.mk                                   |  4 ++--
 package/sylpheed/sylpheed.mk                                   |  4 ++--
 package/synergy/Config.in                                      |  2 +-
 package/synergy/synergy.mk                                     |  2 +-
 package/syslog-ng/Config.in                                    |  2 +-
 package/syslog-ng/syslog-ng.mk                                 |  2 +-
 package/thrift/Config.in                                       |  2 +-
 package/tinc/Config.in                                         |  2 +-
 package/tinc/tinc.mk                                           |  2 +-
 package/tn5250/tn5250.mk                                       |  4 ++--
 package/tor/Config.in                                          |  2 +-
 package/tor/tor.mk                                             |  2 +-
 package/tpm-tools/Config.in                                    |  2 +-
 package/tpm-tools/tpm-tools.mk                                 |  2 +-
 package/transmission/Config.in                                 |  2 +-
 package/transmission/transmission.mk                           |  2 +-
 package/trousers/Config.in                                     |  2 +-
 package/trousers/trousers.mk                                   |  2 +-
 package/turbolua/turbolua.mk                                   |  4 ++--
 package/tvheadend/Config.in                                    |  2 +-
 package/uboot-tools/Config.in                                  |  2 +-
 package/uboot-tools/uboot-tools.mk                             |  4 ++--
 package/ustream-ssl/Config.in                                  |  2 +-
 package/ustream-ssl/ustream-ssl.mk                             |  2 +-
 package/vboot-utils/vboot-utils.mk                             |  2 +-
 package/vsftpd/vsftpd.mk                                       |  4 ++--
 package/vtun/Config.in                                         |  2 +-
 package/vtun/vtun.mk                                           |  2 +-
 package/wget/wget.mk                                           |  4 ++--
 package/wpa_supplicant/wpa_supplicant.mk                       |  6 +++---
 package/x11r7/xserver_xorg-server/Config.in                    |  2 +-
 package/x11r7/xserver_xorg-server/xserver_xorg-server.mk       |  4 ++--
 package/x11vnc/x11vnc.mk                                       |  4 ++--
 package/xen/Config.in                                          |  2 +-
 package/xen/xen.mk                                             |  2 +-
 package/xl2tp/Config.in                                        |  2 +-
 package/xl2tp/xl2tp.mk                                         |  2 +-
 package/znc/znc.mk                                             |  4 ++--
 231 files changed, 334 insertions(+), 334 deletions(-)
package/aircrack-ng/Config.in +1 -1
index 2164ad407..478a97215 100644
@@ -6,7 +6,7 @@ config BR2_PACKAGE_AIRCRACK_NG
 	# libnl has issues when linking statically
 	# they need fixing in libnl itself
 	select BR2_PACKAGE_LIBNL if !BR2_STATIC_LIBS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  A set of tools for auditing wireless networks
package/aircrack-ng/aircrack-ng.mk +1 -1
index 6b384c072..53b428925 100644
@@ -8,7 +8,7 @@ AIRCRACK_NG_VERSION = 1.2-rc4
 AIRCRACK_NG_SITE = http://download.aircrack-ng.org
 AIRCRACK_NG_LICENSE = GPL-2.0+
 AIRCRACK_NG_LICENSE_FILES = LICENSE
-AIRCRACK_NG_DEPENDENCIES = openssl zlib host-pkgconf
+AIRCRACK_NG_DEPENDENCIES = libssl zlib host-pkgconf
 # Enable buddy-ng, easside-ng, tkiptun-ng, wesside-ng
 AIRCRACK_NG_MAKE_OPTS = unstable=true
 
package/alljoyn-base/Config.in +1 -1
index 8556d66c6..d0ecf41ae 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_ALLJOYN_BASE
 	depends on BR2_USE_WCHAR # alljoyn
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # alljoyn
 	select BR2_PACKAGE_ALLJOYN
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ALLJOYN_BASE_CONTROLPANEL if \
 		!BR2_PACKAGE_ALLJOYN_BASE_NOTIFICATION && \
 		!BR2_PACKAGE_ALLJOYN_BASE_ONBOARDING
package/alljoyn-base/alljoyn-base.mk +1 -1
index ad1980282..84d988e8f 100644
@@ -11,7 +11,7 @@ ALLJOYN_BASE_SITE = \
 # See https://allseenalliance.org/alliance/ip-policy
 ALLJOYN_BASE_LICENSE = ISC
 
-ALLJOYN_BASE_DEPENDENCIES = host-scons alljoyn openssl
+ALLJOYN_BASE_DEPENDENCIES = host-scons alljoyn libssl
 ALLJOYN_BASE_INSTALL_STAGING = YES
 
 ALLJOYN_BASE_CRYPTO = openssl
package/alljoyn/Config.in +1 -1
index 6eb417daf..60df10df0 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_ALLJOYN
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_WCHAR
 	select BR2_PACKAGE_LIBCAP
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  The AllJoyn framework defines a common way for devices and
 	  apps to communicate with one another regardless of brands,
package/alljoyn/alljoyn.mk +1 -1
index 69d5dedc4..8e403f8f1 100644
@@ -11,7 +11,7 @@ ALLJOYN_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_REV)
 # See https://allseenalliance.org/alliance/ip-policy
 ALLJOYN_LICENSE = ISC
 
-ALLJOYN_DEPENDENCIES = host-scons libcap openssl
+ALLJOYN_DEPENDENCIES = host-scons libcap libssl
 ALLJOYN_INSTALL_STAGING = YES
 
 ALLJOYN_CRYPTO = openssl
package/android-tools/Config.in +2 -2
index 96e36e6cd..80a468028 100644
@@ -58,7 +58,7 @@ comment "fastboot needs headers >= 3.10 (PowerPC64), headers >= 3.16 (MIPS64)"
 config BR2_PACKAGE_ANDROID_TOOLS_ADB
 	bool "adb"
 	depends on BR2_USE_MMU # uses fork()
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  This option will build and install the adb utility for the
@@ -68,7 +68,7 @@ config BR2_PACKAGE_ANDROID_TOOLS_ADB
 config BR2_PACKAGE_ANDROID_TOOLS_ADBD
 	bool "adbd"
 	depends on BR2_USE_MMU # uses fork()
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  This option will build and install the adbd utility for the
package/android-tools/android-tools.mk +3 -3
index f6c6913a6..05cdf00ad 100644
@@ -37,7 +37,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_HOST_ANDROID_TOOLS_ADB),y)
 HOST_ANDROID_TOOLS_TARGETS += adb
-HOST_ANDROID_TOOLS_DEPENDENCIES += host-zlib host-openssl
+HOST_ANDROID_TOOLS_DEPENDENCIES += host-zlib host-libssl
 endif
 
 ifeq ($(BR2_PACKAGE_ANDROID_TOOLS_FASTBOOT),y)
@@ -47,12 +47,12 @@ endif
 
 ifeq ($(BR2_PACKAGE_ANDROID_TOOLS_ADB),y)
 ANDROID_TOOLS_TARGETS += adb
-ANDROID_TOOLS_DEPENDENCIES += zlib openssl
+ANDROID_TOOLS_DEPENDENCIES += zlib libssl
 endif
 
 ifeq ($(BR2_PACKAGE_ANDROID_TOOLS_ADBD),y)
 ANDROID_TOOLS_TARGETS += adbd
-ANDROID_TOOLS_DEPENDENCIES += zlib openssl
+ANDROID_TOOLS_DEPENDENCIES += zlib libssl
 endif
 
 # Build each tool in its own directory not to share object files
package/apache/apache.mk +2 -2
index 857e53834..741e2dba5 100644
@@ -57,8 +57,8 @@ APACHE_CONF_OPTS += \
 	--disable-proxy-html
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-APACHE_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+APACHE_DEPENDENCIES += libssl
 APACHE_CONF_OPTS += \
 	--enable-ssl \
 	--with-ssl=$(STAGING_DIR)/usr
package/apr-util/apr-util.mk +2 -2
index bc0572e11..dc3f28055 100644
@@ -46,9 +46,9 @@ else
 APR_UTIL_CONF_OPTS += --without-sqlite3
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr"
-APR_UTIL_DEPENDENCIES += openssl
+APR_UTIL_DEPENDENCIES += libssl
 else
 APR_UTIL_CONF_OPTS += --without-crypto
 endif
package/azure-iot-sdk-c/Config.in +1 -1
index 366dc91ea..34996d1a8 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_AZURE_IOT_SDK_C
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBXML2
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
 	help
package/azure-iot-sdk-c/azure-iot-sdk-c.mk +1 -1
index 18c3e2498..9af2cad58 100644
@@ -11,7 +11,7 @@ AZURE_IOT_SDK_C_GIT_SUBMODULES = YES
 AZURE_IOT_SDK_C_LICENSE = MIT
 AZURE_IOT_SDK_C_LICENSE_FILES = LICENSE
 AZURE_IOT_SDK_C_INSTALL_STAGING = YES
-AZURE_IOT_SDK_C_DEPENDENCIES = libxml2 openssl libcurl util-linux
+AZURE_IOT_SDK_C_DEPENDENCIES = libxml2 libssl libcurl util-linux
 AZURE_IOT_SDK_C_CONF_OPTS = -Dskip_samples=ON
 
 # The project only supports building one kind of library.
package/bind/bind.mk +2 -2
index 988f40e1c..f912880f1 100644
@@ -52,8 +52,8 @@ else
 BIND_CONF_OPTS += --with-libxml2=no
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-BIND_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+BIND_DEPENDENCIES += libssl
 BIND_CONF_ENV += \
 	ac_cv_func_EVP_sha256=yes \
 	ac_cv_func_EVP_sha384=yes \
package/botan/botan.mk +2 -2
index e42bb61cb..286289fe5 100644
@@ -33,8 +33,8 @@ BOTAN_DEPENDENCIES += gmp
 BOTAN_CONF_OPTS += --with-gnump
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-BOTAN_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+BOTAN_DEPENDENCIES += libssl
 BOTAN_CONF_OPTS += --with-openssl
 endif
 
package/c-icap/c-icap.mk +2 -2
index c722098c5..ef5de4993 100644
@@ -54,9 +54,9 @@ else
 C_ICAP_CONF_OPTS += --without-ldap
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 C_ICAP_CONF_OPTS += --with-openssl
-C_ICAP_DEPENDENCIES += openssl
+C_ICAP_DEPENDENCIES += libssl
 else
 C_ICAP_CONF_OPTS += --without-openssl
 endif
package/ca-certificates/ca-certificates.mk +1 -1
index f712e7988..7221afb00 100644
@@ -7,7 +7,7 @@
 CA_CERTIFICATES_VERSION = 20161130
 CA_CERTIFICATES_SOURCE = ca-certificates_$(CA_CERTIFICATES_VERSION).tar.xz
 CA_CERTIFICATES_SITE = http://snapshot.debian.org/archive/debian/20161205T153846Z/pool/main/c/ca-certificates
-CA_CERTIFICATES_DEPENDENCIES = host-openssl
+CA_CERTIFICATES_DEPENDENCIES = host-libssl
 # ca-certificates can be built with either python 2 or python 3
 # but it must be at least python 2.7
 CA_CERTIFICATES_DEPENDENCIES += \
package/civetweb/civetweb.mk +2 -2
index d29765b87..a22234ed2 100644
@@ -20,10 +20,10 @@ CIVETWEB_CONF_OPTS += WITH_LUA=1
 CIVETWEB_LIBS += -ldl
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 CIVETWEB_COPT += -DNO_SSL_DL
 CIVETWEB_LIBS += -lssl -lcrypto -lz
-CIVETWEB_DEPENDENCIES += openssl
+CIVETWEB_DEPENDENCIES += libssl
 else
 CIVETWEB_COPT += -DNO_SSL
 endif
package/clamav/Config.in +1 -1
index bc934ea45..9a834505e 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_CLAMAV
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBTOOL
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  ClamAV is an open source antivirus engine for detecting
package/clamav/clamav.mk +1 -1
index 5429abb98..e97de1fb0 100644
@@ -13,7 +13,7 @@ CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
 CLAMAV_DEPENDENCIES = \
 	host-pkgconf \
 	libtool \
-	openssl \
+	libssl \
 	zlib \
 	$(TARGET_NLS_DEPENDENCIES)
 
package/collectd/Config.in +1 -1
index ccd3fbe13..ed27716ff 100644
@@ -67,7 +67,7 @@ config BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL
 	bool "notify_email"
 	depends on !BR2_STATIC_LIBS # libesmtp
 	select BR2_PACKAGE_LIBESMTP
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Send an E-mail with the notification message to the
 	  configured recipients.
package/coreutils/coreutils.mk +2 -2
index 6a8a31b06..46f16b4dc 100644
@@ -96,9 +96,9 @@ else
 COREUTILS_CONF_OPTS += --disable-libcap
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 COREUTILS_CONF_OPTS += --with-openssl=yes
-COREUTILS_DEPENDENCIES += openssl
+COREUTILS_DEPENDENCIES += libssl
 endif
 
 ifeq ($(BR2_ROOTFS_MERGED_USR),)
package/cryptsetup/cryptsetup.mk +2 -2
index 549658302..3cff7c7d0 100644
@@ -21,8 +21,8 @@ ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
 CRYPTSETUP_DEPENDENCIES += libgcrypt
 CRYPTSETUP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=gcrypt
-else ifeq ($(BR2_PACKAGE_OPENSSL),y)
-CRYPTSETUP_DEPENDENCIES += openssl
+else ifeq ($(BR2_PACKAGE_LIBSSL),y)
+CRYPTSETUP_DEPENDENCIES += libssl
 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=openssl
 else
 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
package/ctorrent/ctorrent.mk +2 -2
index 959e543f7..59ba018cd 100644
@@ -9,9 +9,9 @@ CTORRENT_SITE = http://www.rahul.net/dholmes/ctorrent
 CTORRENT_LICENSE = GPL-2.0
 CTORRENT_LICENSE_FILES = COPYING
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 CTORRENT_CONF_OPTS += --with-ssl=yes
-CTORRENT_DEPENDENCIES += openssl
+CTORRENT_DEPENDENCIES += libssl
 else
 CTORRENT_CONF_OPTS += --with-ssl=no
 endif
package/curlftpfs/Config.in +1 -1
index c8c432f20..2f737ac03 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_CURLFTPFS
 	select BR2_PACKAGE_LIBFUSE
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LIBCURL
 	help
 	  CurlFtpFS is a filesystem for accessing FTP hosts based on
package/dillo/dillo.mk +2 -2
index a6885f5c1..1bf75061f 100644
@@ -15,9 +15,9 @@ DILLO_DEPENDENCIES = fltk zlib \
 	$(if $(BR2_PACKAGE_LIBICONV),libiconv)
 DILLO_CONF_ENV = ac_cv_path_FLTK_CONFIG=$(STAGING_DIR)/usr/bin/fltk-config
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 DILLO_CONF_OPTS += --enable-ssl
-DILLO_DEPENDENCIES += openssl
+DILLO_DEPENDENCIES += libssl
 else
 DILLO_CONF_OPTS += --disable-ssl
 endif
package/domoticz/Config.in +1 -1
index c03f84ae4..544bff907 100644
@@ -13,7 +13,7 @@ config BR2_PACKAGE_DOMOTICZ
 	select BR2_PACKAGE_BOOST_THREAD
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_MOSQUITTO
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_ZLIB
 	help
package/domoticz/domoticz.mk +1 -1
index 59731b514..c61b3c230 100644
@@ -14,7 +14,7 @@ DOMOTICZ_DEPENDENCIES = \
 	libcurl \
 	lua \
 	mosquitto \
-	openssl \
+	libssl \
 	sqlite \
 	zlib
 
package/dovecot/Config.in +1 -1
index 377fd4dbb..47c409b07 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_DOVECOT
 	bool "dovecot"
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  Dovecot is an open source IMAP and POP3 email server for
package/dovecot/dovecot.mk +1 -1
index 4cc6ae4de..a1410e973 100644
@@ -13,7 +13,7 @@ DOVECOT_LICENSE_FILES = COPYING COPYING.LGPL COPYING.MIT
 DOVECOT_DEPENDENCIES = \
 	host-pkgconf \
 	$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
-	openssl
+	libssl
 
 DOVECOT_CONF_ENV = \
 	RPCGEN=__disable_RPCGEN_rquota \
package/easy-rsa/Config.in +2 -2
index 883d679e9..d6a43a57f 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_EASY_RSA
 	bool "easy-rsa"
-	select BR2_PACKAGE_OPENSSL # runtime
-	select BR2_PACKAGE_OPENSSL_BIN
+	select BR2_PACKAGE_LIBSSL # runtime
+	select BR2_PACKAGE_LIBSSL_BIN
 	help
 	  Simple shell based CA utility
 
package/ecryptfs-utils/ecryptfs-utils.mk +2 -2
index eb3194b6d..3737e56f7 100644
@@ -18,9 +18,9 @@ ECRYPTFS_UTILS_CONF_ENV = \
 	NSS_CFLAGS="-I$(STAGING_DIR)/usr/include/nss -I$(STAGING_DIR)/usr/include/nspr" \
 	NSS_LIBS="-lnss3"
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 ECRYPTFS_UTILS_CONF_OPTS += --enable-openssl
-ECRYPTFS_UTILS_DEPENDENCIES += openssl
+ECRYPTFS_UTILS_DEPENDENCIES += libssl
 else
 ECRYPTFS_UTILS_CONF_OPTS += --disable-openssl
 endif
package/efl/efl.mk +3 -3
index 9cbbabb1e..9eba57cbf 100644
@@ -146,8 +146,8 @@ EFL_CONF_OPTS += --with-glib=no
 endif
 
 # Prefer openssl (the default) over gnutls.
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-EFL_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+EFL_DEPENDENCIES += libssl
 EFL_CONF_OPTS += --with-crypto=openssl
 else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
 EFL_DEPENDENCIES += gnutls libgcrypt
@@ -155,7 +155,7 @@ EFL_CONF_OPTS += --with-crypto=gnutls \
 	--with-libgcrypt-prefix=$(STAGING_DIR)/usr
 else
 EFL_CONF_OPTS += --with-crypto=none
-endif # BR2_PACKAGE_OPENSSL
+endif # BR2_PACKAGE_LIBSSL
 
 ifeq ($(BR2_PACKAGE_EFL_ELPUT),y)
 EFL_CONF_OPTS += --enable-elput
package/ejabberd/Config.in +1 -1
index a7542cd12..eab98bb97 100644
@@ -17,7 +17,7 @@ config BR2_PACKAGE_EJABBERD
 	select BR2_PACKAGE_ERLANG_P1_YAML
 	select BR2_PACKAGE_ERLANG_P1_ZLIB
 	select BR2_PACKAGE_GETENT
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Ejabberd is a Jabber/XMPP instant messaging server, written
 	  in Erlang/OTP. Among other features, ejabberd is
package/ejabberd/ejabberd.mk +1 -1
index 9baa1124a..05c49af2f 100644
@@ -9,7 +9,7 @@ EJABBERD_SOURCE = ejabberd-$(EJABBERD_VERSION).tgz
 EJABBERD_SITE = https://www.process-one.net/downloads/ejabberd/$(EJABBERD_VERSION)
 EJABBERD_LICENSE = GPL-2.0+ with OpenSSL exception
 EJABBERD_LICENSE_FILES = COPYING
-EJABBERD_DEPENDENCIES = getent openssl host-erlang-lager erlang-lager \
+EJABBERD_DEPENDENCIES = getent libssl host-erlang-lager erlang-lager \
 	erlang-p1-cache-tab erlang-p1-iconv erlang-p1-sip \
 	erlang-p1-stringprep erlang-p1-stun erlang-p1-tls \
 	erlang-p1-utils erlang-p1-xml erlang-p1-xmpp erlang-p1-yaml \
package/erlang-p1-tls/Config.in +1 -1
index a684fbb6a..3de87cd18 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_ERLANG_P1_TLS
 	bool "erlang-p1-tls"
 	select BR2_PACKAGE_ERLANG_P1_UTILS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Erlang interface to OpenSSL
 
package/erlang-p1-tls/erlang-p1-tls.mk +1 -1
index 63d0112cc..9f9b6607d 100644
@@ -9,6 +9,6 @@ ERLANG_P1_TLS_SITE = $(call github,processone,fast_tls,$(ERLANG_P1_TLS_VERSION))
 ERLANG_P1_TLS_LICENSE = Apache-2.0
 ERLANG_P1_TLS_LICENSE_FILES = LICENSE.txt
 ERLANG_P1_TLS_INSTALL_STAGING = YES
-ERLANG_P1_TLS_DEPENDENCIES = openssl erlang-p1-utils
+ERLANG_P1_TLS_DEPENDENCIES = libssl erlang-p1-utils
 
 $(eval $(rebar-package))
package/erlang/erlang.mk +3 -3
index f3684d0c9..b6a2d1290 100644
@@ -38,7 +38,7 @@ HOST_ERLANG_CONF_ENV += ERL_TOP=$(@D)
 
 # erlang uses openssl for all things crypto. Since the host tools (such as
 # rebar) uses crypto, we need to build host-erlang with support for openssl.
-HOST_ERLANG_DEPENDENCIES = host-openssl
+HOST_ERLANG_DEPENDENCIES = host-libssl
 HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR)
 
 HOST_ERLANG_CONF_OPTS += --without-termcap
@@ -54,9 +54,9 @@ else
 ERLANG_CONF_OPTS += --without-termcap
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 ERLANG_CONF_OPTS += --with-ssl
-ERLANG_DEPENDENCIES += openssl
+ERLANG_DEPENDENCIES += libssl
 else
 ERLANG_CONF_OPTS += --without-ssl
 endif
package/exim/exim.mk +2 -2
index 45cb57db1..08a3d583e 100644
@@ -64,8 +64,8 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV
 endef
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-EXIM_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+EXIM_DEPENDENCIES += libssl
 define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL
 	$(call exim-config-change,SUPPORT_TLS,yes)
 	$(call exim-config-change,USE_OPENSSL_PC,openssl)
package/fastd/fastd.mk +2 -2
index e67acdbf1..4ffe948a9 100644
@@ -12,9 +12,9 @@ FASTD_LICENSE_FILES = COPYRIGHT
 FASTD_CONF_OPTS = -DENABLE_LIBSODIUM=ON
 FASTD_DEPENDENCIES = host-bison host-pkgconf libuecc libsodium libcap
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 FASTD_CONF_OPTS += -DENABLE_OPENSSL=ON
-FASTD_DEPENDENCIES += openssl
+FASTD_DEPENDENCIES += libssl
 else
 FASTD_CONF_OPTS += -DENABLE_OPENSSL=OFF
 endif
package/fetchmail/Config.in +1 -1
index a4bf5a7c2..416a004ea 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_FETCHMAIL
 	bool "fetchmail"
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_CA_CERTIFICATES
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Fetchmail - the mail-retrieval daemon
 	  Client daemon to move mail from POP and IMAP to your local
package/fetchmail/fetchmail.mk +1 -1
index 37bbeabf6..dad77faaa 100644
@@ -24,7 +24,7 @@ FETCHMAIL_CONF_OPTS = \
 
 FETCHMAIL_DEPENDENCIES = \
 	ca-certificates \
-	openssl \
+	libssl \
 	$(TARGET_NLS_DEPENDENCIES)
 
 # fetchmailconf.py script is not (yet) python3-compliant.
package/ffmpeg/ffmpeg.mk +2 -2
index f50b410b0..5d403f75e 100644
@@ -208,13 +208,13 @@ FFMPEG_CONF_OPTS += --enable-gnutls --disable-openssl
 FFMPEG_DEPENDENCIES += gnutls
 else
 FFMPEG_CONF_OPTS += --disable-gnutls
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 # openssl isn't license compatible with GPL
 ifeq ($(BR2_PACKAGE_FFMPEG_GPL)x$(BR2_PACKAGE_FFMPEG_NONFREE),yx)
 FFMPEG_CONF_OPTS += --disable-openssl
 else
 FFMPEG_CONF_OPTS += --enable-openssl
-FFMPEG_DEPENDENCIES += openssl
+FFMPEG_DEPENDENCIES += libssl
 endif
 else
 FFMPEG_CONF_OPTS += --disable-openssl
package/filemq/Config.in +1 -1
index b4720c1d4..d8371bd5e 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_FILEMQ
 	depends on BR2_INSTALL_LIBSTDCPP # zeromq
 	depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq
 	depends on BR2_USE_MMU # czmq
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_CZMQ
 	select BR2_PACKAGE_ZEROMQ
 	help
package/filemq/filemq.mk +1 -1
index 75d8bd992..e1f34f629 100644
@@ -10,7 +10,7 @@ FILEMQ_SITE = $(call github,zeromq,filemq,$(FILEMQ_VERSION))
 FILEMQ_AUTORECONF = YES
 FILEMQ_CONF_ENV = filemq_have_asciidoc=no
 FILEMQ_INSTALL_STAGING = YES
-FILEMQ_DEPENDENCIES = czmq openssl zeromq
+FILEMQ_DEPENDENCIES = czmq libssl zeromq
 FILEMQ_LICENSE = MPL-2.0
 FILEMQ_LICENSE_FILES = LICENSE
 
package/flickcurl/Config.in +1 -1
index 426ceecba..8f40422e0 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_FLICKCURL
 	select BR2_PACKAGE_LIBXML2
 	# Ensure that libcurl is built with crypto support, since
 	# flickcurl must access https:// URLs.
-	select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_GNUTLS || BR2_PACKAGE_LIBNSS)
+	select BR2_PACKAGE_LIBSSL if !(BR2_PACKAGE_GNUTLS || BR2_PACKAGE_LIBNSS)
 	select BR2_PACKAGE_CA_CERTIFICATES # runtime
 	help
 	  Flickcurl is a C library for the Flickr API, handling
package/freerdp/Config.in +1 -1
index 9dd2505a4..892c2ef73 100644
@@ -9,7 +9,7 @@ config BR2_PACKAGE_FREERDP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # libglib2
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	select BR2_PACKAGE_LIBGLIB2
 	help
package/freerdp/freerdp.mk +1 -1
index c3a3e55d0..ad43ef3f4 100644
@@ -7,7 +7,7 @@
 # Changeset on the master branch
 FREERDP_VERSION = 17834af7bb378f85a3b3cc4dcadaa5125a337e16
 FREERDP_SITE = $(call github,FreeRDP,FreeRDP,$(FREERDP_VERSION))
-FREERDP_DEPENDENCIES = libglib2 openssl zlib
+FREERDP_DEPENDENCIES = libglib2 libssl zlib
 FREERDP_LICENSE = Apache-2.0
 FREERDP_LICENSE_FILES = LICENSE
 
package/freeswitch/Config.in +1 -1
index 1f6459335..8bcab123c 100644
@@ -14,7 +14,7 @@ config BR2_PACKAGE_FREESWITCH
 	select BR2_PACKAGE_OPENCV_LIB_HIGHGUI if BR2_PACKAGE_OPENCV
 	select BR2_PACKAGE_OPENCV_LIB_IMGPROC if BR2_PACKAGE_OPENCV
 	select BR2_PACKAGE_OPENCV_LIB_OBJDETECT if BR2_PACKAGE_OPENCV
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_SPEEX
 	select BR2_PACKAGE_SQLITE
package/freeswitch/freeswitch.mk +1 -1
index e5c8854e3..e09bf3753 100644
@@ -30,7 +30,7 @@ FREESWITCH_DEPENDENCIES = \
 	host-pkgconf \
 	jpeg \
 	libcurl \
-	openssl \
+	libssl \
 	pcre \
 	speex \
 	sqlite \
package/git-crypt/Config.in +1 -1
index 362fe9a60..745a4ac0e 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_GIT_CRYPT
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_USE_MMU # git
 	select BR2_PACKAGE_GIT # runtime
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  git-crypt enables transparent encryption and decryption of
 	  files in a git repository.
package/git-crypt/git-crypt.mk +1 -1
index 6cae456fd..215086257 100644
@@ -6,7 +6,7 @@
 
 GIT_CRYPT_VERSION = 0.5.0
 GIT_CRYPT_SITE = https://www.agwa.name/projects/git-crypt/downloads
-GIT_CRYPT_DEPENDENCIES = host-pkgconf openssl
+GIT_CRYPT_DEPENDENCIES = host-pkgconf libssl
 GIT_CRYPT_LICENSE = GPL-3.0+, MIT
 GIT_CRYPT_LICENSE_FILES = COPYING parse_options.hpp
 
package/git/git.mk +2 -2
index d95c2fec3..1f92757a7 100644
@@ -11,8 +11,8 @@ GIT_LICENSE = GPL-2.0, LGPL-2.1+
 GIT_LICENSE_FILES = COPYING LGPL-2.1
 GIT_DEPENDENCIES = zlib $(TARGET_NLS_DEPENDENCIES)
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-GIT_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+GIT_DEPENDENCIES += libssl
 GIT_CONF_OPTS += --with-openssl
 GIT_CONF_ENV_LIBS += $(if $(BR2_STATIC_LIBS),-lz)
 else
package/gstreamer/gst-plugins-bad/Config.in +1 -1
index 939fc7a7f..b710a4da3 100644
@@ -244,7 +244,7 @@ comment "plugins with external dependencies (there may be more available)"
 
 config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_APEXSINK
 	bool "apexsink"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 
 config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_BZ2
 	bool "bz2"
package/gstreamer/gst-plugins-bad/gst-plugins-bad.mk +1 -1
index b9416db34..18baf37b9 100644
@@ -473,7 +473,7 @@ endif
 # plugins with deps
 ifeq ($(BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_APEXSINK),y)
 GST_PLUGINS_BAD_CONF_OPTS += --enable-apexsink
-GST_PLUGINS_BAD_DEPENDENCIES += openssl
+GST_PLUGINS_BAD_DEPENDENCIES += libssl
 else
 GST_PLUGINS_BAD_CONF_OPTS += --disable-apexsink
 endif
package/gstreamer1/gst1-plugins-bad/Config.in +2 -2
index 0c9789997..840c2e6ac 100644
@@ -519,7 +519,7 @@ comment "gl needs the gst1-plugins-bad opengl library"
 
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS
 	bool "hls"
-	select BR2_PACKAGE_NETTLE if !(BR2_PACKAGE_LIBGCRYPT || BR2_PACKAGE_OPENSSL)
+	select BR2_PACKAGE_NETTLE if !(BR2_PACKAGE_LIBGCRYPT || BR2_PACKAGE_LIBSSL)
 	help
 	  Fragmented streaming plugins
 
@@ -543,7 +543,7 @@ comment "libmms needs a toolchain w/ wchar, threads"
 
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DTLS
 	bool "dtls"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  DTLS plugin
 
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +2 -2
index 7a32689b8..69336cf39 100644
@@ -607,7 +607,7 @@ GST1_PLUGINS_BAD_DEPENDENCIES += libgcrypt
 GST1_PLUGINS_BAD_CONF_OPTS += --with-hls-crypto=libgcrypt \
 	--with-libgcrypt-prefix=$(STAGING_DIR)/usr
 else
-GST1_PLUGINS_BAD_DEPENDENCIES += openssl
+GST1_PLUGINS_BAD_DEPENDENCIES += libssl
 GST1_PLUGINS_BAD_CONF_OPTS += --with-hls-crypto=openssl
 endif
 
@@ -631,7 +631,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DTLS),y)
 GST1_PLUGINS_BAD_CONF_OPTS += --enable-dtls
-GST1_PLUGINS_BAD_DEPENDENCIES += openssl
+GST1_PLUGINS_BAD_DEPENDENCIES += libssl
 else
 GST1_PLUGINS_BAD_CONF_OPTS += --disable-dtls
 endif
package/heirloom-mailx/heirloom-mailx.mk +2 -2
index 2f7e635e0..79098ee20 100644
@@ -10,8 +10,8 @@ HEIRLOOM_MAILX_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z
 HEIRLOOM_MAILX_LICENSE = BSD-4-Clause, Bellcore (base64), OpenVision (imap_gssapi), RSA Data Security (md5), Network Working Group (hmac), MPL-1.1 (nss)
 HEIRLOOM_MAILX_LICENSE_FILES = COPYING
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-HEIRLOOM_MAILX_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+HEIRLOOM_MAILX_DEPENDENCIES += libssl
 endif
 
 define HEIRLOOM_MAILX_CONFIGURE_CMDS
package/hostapd/hostapd.mk +2 -2
index dc28d1323..799a8b485 100644
@@ -35,8 +35,8 @@ HOSTAPD_LIBS += -lnl-3 -lm -lpthread
 endif
 
 # Try to use openssl if it's already available
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-HOSTAPD_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+HOSTAPD_DEPENDENCIES += libssl
 HOSTAPD_LIBS += $(if $(BR2_STATIC_LIBS),-lcrypto -lz)
 HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/'
 else
package/ibrcommon/ibrcommon.mk +2 -2
index 4d2d351c8..237c1bb2f 100644
@@ -11,8 +11,8 @@ IBRCOMMON_LICENSE = Apache-2.0
 IBRCOMMON_LICENSE_FILES = COPYING README
 IBRCOMMON_DEPENDENCIES = host-pkgconf
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-IBRCOMMON_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+IBRCOMMON_DEPENDENCIES += libssl
 IBRCOMMON_CONF_OPTS += --with-openssl
 else
 IBRCOMMON_CONF_OPTS += --without-openssl
package/ibrdtnd/ibrdtnd.mk +2 -2
index 0632ed36b..ccfd3039d 100644
@@ -41,9 +41,9 @@ else
 IBRDTND_CONF_OPTS += --without-sqlite
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 IBRDTND_CONF_OPTS += --with-tls
-IBRDTND_DEPENDENCIES += openssl
+IBRDTND_DEPENDENCIES += libssl
 else
 IBRDTND_CONF_OPTS += --without-tls
 endif
package/inadyn/inadyn.mk +2 -2
index 0ef8b5a52..fef676e13 100644
@@ -11,9 +11,9 @@ INADYN_LICENSE = GPL-2.0+
 INADYN_LICENSE_FILES = COPYING
 INADYN_DEPENDENCIES = host-pkgconf libconfuse libite
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 INADYN_CONF_OPTS += --enable-openssl
-INADYN_DEPENDENCIES += openssl
+INADYN_DEPENDENCIES += libssl
 else ifeq ($(BR2_PACKAGE_GNUTLS),y)
 INADYN_DEPENDENCIES += gnutls
 else
package/ipmitool/Config.in +1 -1
index 826bc094b..342bebfe5 100644
@@ -11,7 +11,7 @@ if BR2_PACKAGE_IPMITOOL
 
 config BR2_PACKAGE_IPMITOOL_LANPLUS
 	bool "enable lanplus interface"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enables the IPMI v2.0 RMCP+ LAN interface typically used to
 	  send IPMI commands to the BMC of a remote server.
package/ipmitool/ipmitool.mk +1 -1
index 525466887..ffa90b8c9 100644
@@ -11,7 +11,7 @@ IPMITOOL_LICENSE = BSD-3-Clause
 IPMITOOL_LICENSE_FILES = COPYING
 
 ifeq ($(BR2_PACKAGE_IPMITOOL_LANPLUS),y)
-IPMITOOL_DEPENDENCIES += openssl
+IPMITOOL_DEPENDENCIES += libssl
 IPMITOOL_CONF_OPTS += --enable-intf-lanplus
 else
 IPMITOOL_CONF_OPTS += --disable-intf-lanplus
package/ipmiutil/ipmiutil.mk +2 -2
index a5a6b4931..9764a8f44 100644
@@ -14,12 +14,12 @@ IPMIUTIL_AUTORECONF = YES
 IPMIUTIL_MAKE = $(MAKE1)
 
 # forgets to link against libcrypto dependencies breaking static link
-ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx)
+ifeq ($(BR2_PACKAGE_LIBSSL)x$(BR2_STATIC_LIBS),yx)
 # tests against distro libcrypto so it might get a false positive when
 # the openssl version is old, so force it off
 # SKIP_MD2 can be used only if ALLOW_GNU is defined.
 IPMIUTIL_CONF_OPTS += CPPFLAGS="$(TARGET_CPPFLAGS) -DALLOW_GNU -DSKIP_MD2"
-IPMIUTIL_DEPENDENCIES += openssl
+IPMIUTIL_DEPENDENCIES += libssl
 else
 IPMIUTIL_CONF_OPTS += --disable-lanplus
 endif
package/ipsec-tools/Config.in +1 -1
index 1635675a3..8cd6cac47 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_IPSEC_TOOLS
 	bool "ipsec-tools"
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_TOOLCHAIN_USES_MUSL # Use __P() macro all over the tree
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_FLEX
 	help
 	  This package is required to support IPSec for Linux 2.6+
package/ipsec-tools/ipsec-tools.mk +1 -1
index c0b180de5..b974a6563 100644
@@ -9,7 +9,7 @@ IPSEC_TOOLS_SOURCE = ipsec-tools-$(IPSEC_TOOLS_VERSION).tar.bz2
 IPSEC_TOOLS_SITE = http://sourceforge.net/projects/ipsec-tools/files/ipsec-tools/$(IPSEC_TOOLS_VERSION)
 IPSEC_TOOLS_INSTALL_STAGING = YES
 IPSEC_TOOLS_MAKE = $(MAKE1)
-IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex
+IPSEC_TOOLS_DEPENDENCIES = libssl flex host-flex
 # we patch configure.ac
 IPSEC_TOOLS_AUTORECONF = YES
 
package/iputils/iputils.mk +2 -2
index b20cd12b7..3fccb06fb 100644
@@ -47,9 +47,9 @@ else
 IPUTILS_MAKE_OPTS += USE_NETTLE=no
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 IPUTILS_MAKE_OPTS += USE_CRYPTO=yes
-IPUTILS_DEPENDENCIES += openssl
+IPUTILS_DEPENDENCIES += libssl
 else
 IPUTILS_MAKE_OPTS += USE_CRYPTO=no
 endif
package/irssi/Config.in +1 -1
index 6361cff31..cd8bd97e6 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_IRSSI
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Irssi is a terminal based IRC client for UNIX systems.
 
package/irssi/irssi.mk +1 -1
index d2b816947..6f867b288 100644
@@ -11,7 +11,7 @@ IRSSI_SOURCE = irssi-$(IRSSI_VERSION).tar.xz
 IRSSI_SITE = https://github.com/irssi/irssi/releases/download/$(IRSSI_VERSION)
 IRSSI_LICENSE = GPL-2.0+
 IRSSI_LICENSE_FILES = COPYING
-IRSSI_DEPENDENCIES = host-pkgconf libglib2 ncurses openssl
+IRSSI_DEPENDENCIES = host-pkgconf libglib2 ncurses libssl
 
 IRSSI_CONF_OPTS = \
 	--disable-glibtest \
package/janus-gateway/Config.in +1 -1
index 5bd4e9586..cd72c39c0 100644
@@ -8,7 +8,7 @@ menuconfig BR2_PACKAGE_JANUS_GATEWAY
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_LIBNICE
 	select BR2_PACKAGE_LIBSRTP
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Janus is an open source, general purpose, WebRTC gateway
 	  designed and developed by Meetecho.
package/keepalived/Config.in +1 -1
index 0140e62ae..5c24b013c 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_KEEPALIVED
 	depends on BR2_USE_MMU
 	depends on !BR2_STATIC_LIBS # uses libdl
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_POPT
 	help
 	  The main goal of the keepalived project is to add a strong &
package/keepalived/keepalived.mk +1 -1
index 59d3cb5cf..7ccb865a1 100644
@@ -6,7 +6,7 @@
 
 KEEPALIVED_VERSION = 1.3.5
 KEEPALIVED_SITE = http://www.keepalived.org/software
-KEEPALIVED_DEPENDENCIES = host-pkgconf openssl popt
+KEEPALIVED_DEPENDENCIES = host-pkgconf libssl popt
 KEEPALIVED_LICENSE = GPL-2.0+
 KEEPALIVED_LICENSE_FILES = COPYING
 KEEPALIVED_CONF_OPTS += --disable-dbus
package/kodi/Config.in +1 -1
index 1115a1e92..cf148c888 100644
@@ -65,7 +65,7 @@ menuconfig BR2_PACKAGE_KODI
 	select BR2_PACKAGE_LIBSAMPLERATE
 	select BR2_PACKAGE_LZO
 	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_PCRE_UCP
 	select BR2_PACKAGE_PYTHON_BSDDB
package/kodi/kodi.mk +1 -1
index 0bf7331dd..bc0d2e3b4 100644
@@ -35,7 +35,7 @@ KODI_DEPENDENCIES = \
 	libsamplerate \
 	lzo \
 	ncurses \
-	openssl \
+	libssl \
 	pcre \
 	python \
 	readline \
package/lftp/Config.in +1 -1
index ebe8882e9..d79bf238c 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_LFTP
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_READLINE
 	select BR2_PACKAGE_ZLIB
-	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
+	select BR2_PACKAGE_LIBSSL if !BR2_PACKAGE_GNUTLS
 	help
 	  LFTP is a sophisticated ftp/http client, and a file transfer
 	  program supporting a number of network protocols. Like BASH,
package/lftp/lftp.mk +2 -2
index de4ebb852..5237fbbbd 100644
@@ -34,8 +34,8 @@ else
 LFTP_CONF_OPTS += --without-gnutls
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LFTP_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LFTP_DEPENDENCIES += libssl
 LFTP_CONF_OPTS += --with-openssl
 else
 LFTP_CONF_OPTS += --without-openssl
package/libarchive/libarchive.mk +2 -2
index 9956b63d4..0a33f5574 100644
@@ -90,8 +90,8 @@ else
 LIBARCHIVE_CONF_OPTS += --without-nettle
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBARCHIVE_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LIBARCHIVE_DEPENDENCIES += libssl
 else
 LIBARCHIVE_CONF_OPTS += --without-openssl
 endif
package/libcurl/libcurl.mk +3 -3
index 684844919..673a32ca6 100644
@@ -30,8 +30,8 @@ endif
 
 LIBCURL_CONFIG_SCRIPTS = curl-config
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBCURL_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LIBCURL_DEPENDENCIES += libssl
 LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes
 # configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up
 # native stuff during the rest of configure when target == host.
@@ -73,7 +73,7 @@ endif
 define LIBCURL_FIX_DOT_PC
 	printf 'Requires: openssl\n' >>$(@D)/libcurl.pc.in
 endef
-LIBCURL_POST_PATCH_HOOKS += $(if $(BR2_PACKAGE_OPENSSL),LIBCURL_FIX_DOT_PC)
+LIBCURL_POST_PATCH_HOOKS += $(if $(BR2_PACKAGE_LIBSSL),LIBCURL_FIX_DOT_PC)
 
 ifeq ($(BR2_PACKAGE_CURL),)
 define LIBCURL_TARGET_CLEANUP
package/libeXosip2/libeXosip2.mk +2 -2
index 04f8672c4..2a869143c 100644
@@ -24,8 +24,8 @@ ifeq ($(BR2_PACKAGE_C_ARES),y)
 LIBEXOSIP2_DEPENDENCIES += c-ares
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBEXOSIP2_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LIBEXOSIP2_DEPENDENCIES += libssl
 LIBEXOSIP2_CONF_OPTS += --enable-openssl
 else
 LIBEXOSIP2_CONF_OPTS += --disable-openssl
package/libesmtp/libesmtp.mk +1 -1
index b0f88c7a3..462dd41b0 100644
@@ -9,7 +9,7 @@ LIBESMTP_SOURCE = libesmtp-$(LIBESMTP_VERSION).tar.bz2
 LIBESMTP_SITE = http://www.stafford.uklinux.net/libesmtp
 LIBESMTP_INSTALL_STAGING = YES
 LIBESMTP_CONFIG_SCRIPTS = libesmtp-config
-LIBESMTP_DEPENDENCIES = $(if $(BR2_PACKAGE_OPENSSL),openssl)
+LIBESMTP_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBSSL),libssl)
 LIBESMTP_LICENSE = GPL-2.0+ (examples), LGPL-2.1+ (library)
 LIBESMTP_LICENSE_FILES = COPYING COPYING.LIB
 
package/libevent/libevent.mk +2 -2
index 36bca0b21..66b2edb51 100644
@@ -23,8 +23,8 @@ ifneq ($(BR2_PACKAGE_PYTHON),y)
 LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBEVENT_DEPENDENCIES += host-pkgconf openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LIBEVENT_DEPENDENCIES += host-pkgconf libssl
 LIBEVENT_CONF_OPTS += --enable-openssl
 else
 LIBEVENT_CONF_OPTS += --disable-openssl
package/libfreefare/Config.in +1 -1
index 2bb0c93dd..a2b584247 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_LIBFREEFARE
 	bool "libfreefare"
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LIBNFC
 	help
 	  Library for high level manipulation of MIFARE cards.
package/libfreefare/libfreefare.mk +1 -1
index 13e6f2ad5..141ad9ae9 100644
@@ -9,7 +9,7 @@ LIBFREEFARE_SOURCE = libfreefare-$(LIBFREEFARE_VERSION).tar.bz2
 # Do not use the github helper here, the generated tarball is *NOT*
 # the same as the one uploaded by upstream for the release.
 LIBFREEFARE_SITE = https://github.com/nfc-tools/libfreefare/releases/download/libfreefare-$(LIBFREEFARE_VERSION)
-LIBFREEFARE_DEPENDENCIES = libnfc openssl
+LIBFREEFARE_DEPENDENCIES = libnfc libssl
 LIBFREEFARE_LICENSE = LGPL-3.0+ with exception
 LIBFREEFARE_LICENSE_FILES = COPYING
 
package/libldns/Config.in +1 -1
index 696fec97b..0ed621d2b 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBLDNS
 	bool "libldns"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  The goal of ldns is to simplify DNS programming, it supports
 	  recent RFCs like the DNSSEC documents, and allows developers
package/libldns/libldns.mk +1 -1
index d3c89bb6b..f1b4bba31 100644
@@ -10,7 +10,7 @@ LIBLDNS_SITE = http://www.nlnetlabs.nl/downloads/ldns
 LIBLDNS_LICENSE = BSD-3-Clause
 LIBLDNS_LICENSE_FILES = LICENSE
 LIBLDNS_INSTALL_STAGING = YES
-LIBLDNS_DEPENDENCIES = openssl
+LIBLDNS_DEPENDENCIES = libssl
 # --disable-dane-verify can be removed after openssl bump to 1.1.x
 LIBLDNS_CONF_OPTS = \
 	--with-ssl=$(STAGING_DIR)/usr \
package/liboauth/Config.in +1 -1
index 4ed0efa6b..95d322ba6 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBOAUTH
 	bool "liboauth"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  liboauth is a collection of c functions implementing the oAuth
 	  Core 1.0 Rev A standard API. liboauth provides basic functions
package/liboauth/liboauth.mk +1 -1
index bd54330dd..f7a2c78f3 100644
@@ -7,7 +7,7 @@
 LIBOAUTH_VERSION = 1.0.3
 LIBOAUTH_SITE = http://downloads.sourceforge.net/project/liboauth
 LIBOAUTH_INSTALL_STAGING = YES
-LIBOAUTH_DEPENDENCIES += host-pkgconf openssl
+LIBOAUTH_DEPENDENCIES += host-pkgconf libssl
 LIBOAUTH_LICENSE = MIT
 LIBOAUTH_LICENSE_FILES = COPYING.MIT
 
package/libpjsip/libpjsip.mk +2 -2
index 4e2da7d32..281efe176 100644
@@ -59,8 +59,8 @@ LIBPJSIP_CONF_OPTS = \
 # so we want to use it.
 LIBPJSIP_CONF_OPTS += --enable-epoll
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBPJSIP_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LIBPJSIP_DEPENDENCIES += libssl
 LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
 else
 LIBPJSIP_CONF_OPTS += --disable-ssl
package/libshout/libshout.mk +2 -2
index 8fd850fb1..b601ba99f 100644
@@ -28,9 +28,9 @@ else
 LIBSHOUT_CONF_OPTS += --disable-speex
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 LIBSHOUT_CONF_OPTS += --with-openssl
-LIBSHOUT_DEPENDENCIES += openssl
+LIBSHOUT_DEPENDENCIES += libssl
 else
 LIBSHOUT_CONF_OPTS += --without-openssl
 endif
package/libsrtp/libsrtp.mk +2 -2
index 9e72856c4..c081de71c 100644
@@ -25,8 +25,8 @@ endif
 LIBSRTP_DEPENDENCIES = host-pkgconf
 
 # openssl handling needs libdl support
-ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx)
-LIBSRTP_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL)x$(BR2_STATIC_LIBS),yx)
+LIBSRTP_DEPENDENCIES += libssl
 LIBSRTP_CONF_OPTS += --enable-openssl
 else
 LIBSRTP_CONF_OPTS += --disable-openssl
package/libssh/Config.in +1 -1
index 3dbfa7d56..6c34d1a07 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_LIBSSH
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	# Either OpenSSL or libgcrypt are mandatory
-	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBGCRYPT
+	select BR2_PACKAGE_LIBSSL if !BR2_PACKAGE_LIBGCRYPT
 	help
 	  libssh is a multiplatform C library implementing the SSHv2
 	  and SSHv1 protocol on client and server side. With libssh,
package/libssh/libssh.mk +1 -1
index 34716c502..f951cf712 100644
@@ -30,7 +30,7 @@ LIBSSH_CONF_OPTS += -DWITH_GCRYPT=ON
 LIBSSH_DEPENDENCIES += libgcrypt
 else
 LIBSSH_CONF_OPTS += -DWITH_GCRYPT=OFF
-LIBSSH_DEPENDENCIES += openssl
+LIBSSH_DEPENDENCIES += libssl
 endif
 
 $(eval $(cmake-package))
package/libssh2/Config.in +1 -1
index 9b60823e7..3c14c6c14 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBSSH2
 	bool "libssh2"
-	select BR2_PACKAGE_OPENSSL if !(BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_LIBGCRYPT)
+	select BR2_PACKAGE_LIBSSL if !(BR2_PACKAGE_MBEDTLS || BR2_PACKAGE_LIBGCRYPT)
 	help
 	  libssh2 is a client-side C library implementing the SSH2
 	  protocol as defined by Internet Drafts: SECSH-TRANS(22),
package/libssh2/libssh2.mk +1 -1
index 412793427..4a62e6c43 100644
@@ -26,7 +26,7 @@ LIBSSH2_CONF_OPTS += --with-libgcrypt=$(STAGING_DIR)/usr \
 # linking
 LIBSSH2_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/libgcrypt-config --libs`"
 else
-LIBSSH2_DEPENDENCIES += openssl
+LIBSSH2_DEPENDENCIES += libssl
 LIBSSH2_CONF_OPTS += --with-openssl \
 	--with-libssl-prefix=$(STAGING_DIR)/usr \
 	--without-libgcrypt --without-mbedtls
package/libstrophe/Config.in +1 -1
index 5fdb918d7..2d2f434ff 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_LIBSTROPHE
 	bool "libstrophe"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LIBXML2 if !BR2_PACKAGE_EXPAT
 	help
 	  libstrophe is a lightweight XMPP client library written in C.
package/libstrophe/libstrophe.mk +1 -1
index 4b5a10a55..80f0e0a02 100644
@@ -6,7 +6,7 @@
 
 LIBSTROPHE_VERSION = 0.8.8
 LIBSTROPHE_SITE = $(call github,strophe,libstrophe,$(LIBSTROPHE_VERSION))
-LIBSTROPHE_DEPENDENCIES = openssl host-pkgconf
+LIBSTROPHE_DEPENDENCIES = libssl host-pkgconf
 # Doesn't ship configure
 LIBSTROPHE_AUTORECONF = YES
 LIBSTROPHE_LICENSE = MIT or GPL-3.0
package/libvncserver/libvncserver.mk +2 -2
index 8063570d9..04ddf5712 100644
@@ -29,8 +29,8 @@ LIBVNCSERVER_CONF_OPTS += --without-pthread
 endif
 
 # openssl supports needs NPTL thread support
-ifeq ($(BR2_PACKAGE_OPENSSL)$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),yy)
-LIBVNCSERVER_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL)$(BR2_TOOLCHAIN_HAS_THREADS_NPTL),yy)
+LIBVNCSERVER_DEPENDENCIES += libssl
 else
 LIBVNCSERVER_CONF_OPTS += --without-crypto --without-ssl
 endif
package/libwebsock/libwebsock.mk +2 -2
index df3af3b05..5ae7299fe 100644
@@ -12,8 +12,8 @@ LIBWEBSOCK_INSTALL_STAGING = YES
 LIBWEBSOCK_LICENSE = LGPL-3.0
 LIBWEBSOCK_LICENSE_FILES = COPYING.lesser
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBWEBSOCK_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+LIBWEBSOCK_DEPENDENCIES += libssl
 LIBWEBSOCK_CONF_OPTS += --with-ssl
 else
 LIBWEBSOCK_CONF_OPTS += --without-ssl
package/libwebsockets/libwebsockets.mk +1 -1
index b29a2f14c..64797bf45 100644
@@ -22,7 +22,7 @@ LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=
 endif
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
+LIBWEBSOCKETS_DEPENDENCIES += libssl host-libssl
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON
 else
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
package/lighttpd/Config.in +1 -1
index 383c10f70..546627e20 100644
@@ -22,7 +22,7 @@ if BR2_PACKAGE_LIGHTTPD
 
 config BR2_PACKAGE_LIGHTTPD_OPENSSL
 	bool "openssl support"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable OpenSSL support for lighttpd.
 
package/lighttpd/lighttpd.mk +2 -2
index 97ddfc63b..9e8080d1e 100644
@@ -15,8 +15,8 @@ LIGHTTPD_CONF_OPTS = \
 	--libdir=/usr/lib/lighttpd \
 	--libexecdir=/usr/lib
 
-ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
-LIGHTTPD_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIGHTTPD_LIBSSL),y)
+LIGHTTPD_DEPENDENCIES += libssl
 LIGHTTPD_CONF_OPTS += --with-openssl
 else
 LIGHTTPD_CONF_OPTS += --without-openssl
package/links/links.mk +2 -2
index dd6adb29b..9339d57ad 100644
@@ -73,9 +73,9 @@ else
 LINKS_CONF_OPTS += --without-libevent
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 LINKS_CONF_OPTS += --with-ssl --enable-ssl-pkgconfig
-LINKS_DEPENDENCIES += openssl
+LINKS_DEPENDENCIES += libssl
 else
 LINKS_CONF_OPTS += --without-ssl
 endif
package/luacrypto/Config.in +1 -1
index e9d43cd80..29a1bf203 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LUACRYPTO
 	bool "luacrypto"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  LuaCrypto provides a Lua frontend to the OpenSSL cryptographic
 	  library.
package/luacrypto/luacrypto.mk +1 -1
index b6dbb9999..2b46f6644 100644
@@ -7,6 +7,6 @@
 LUACRYPTO_VERSION = 0.3.2-1
 LUACRYPTO_LICENSE = MIT
 LUACRYPTO_LICENSE_FILES = $(LUACRYPTO_SUBDIR)/COPYING
-LUACRYPTO_DEPENDENCIES = openssl
+LUACRYPTO_DEPENDENCIES = libssl
 
 $(eval $(luarocks-package))
package/luaossl/Config.in +1 -1
index d8763e76a..07e8cd962 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_LUAOSSL
 	bool "luaossl"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  luaossl is a comprehensive binding to OpenSSL for Lua 5.1,
 	  5.2, and later.
package/luaossl/luaossl.mk +1 -1
index 5bb3e8260..ca993ab30 100644
@@ -9,6 +9,6 @@ LUAOSSL_VERSION = $(LUAOSSL_VERSION_UPSTREAM)-0
 LUAOSSL_SUBDIR = luaossl-rel-$(LUAOSSL_VERSION_UPSTREAM)
 LUAOSSL_LICENSE = MIT
 LUAOSSL_LICENSE_FILES = $(LUAOSSL_SUBDIR)/LICENSE
-LUAOSSL_DEPENDENCIES = openssl
+LUAOSSL_DEPENDENCIES = libssl
 
 $(eval $(luarocks-package))
package/luasec/Config.in +1 -1
index 9391cd9d3..b340ef6de 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_LUASEC
 	bool "luasec"
 	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LUASOCKET
 	help
 	  LuaSec is a binding for OpenSSL library to provide TLS/SSL
package/luasec/luasec.mk +1 -1
index b059e1c6e..1f32b6268 100644
@@ -8,6 +8,6 @@ LUASEC_VERSION = 0.5-2
 LUASEC_SUBDIR = luasec
 LUASEC_LICENSE = MIT
 LUASEC_LICENSE_FILES = $(LUASEC_SUBDIR)/LICENSE
-LUASEC_DEPENDENCIES = openssl
+LUASEC_DEPENDENCIES = libssl
 
 $(eval $(luarocks-package))
package/mariadb/mariadb.mk +1 -1
index db538fd0f..4a3648326 100644
@@ -16,7 +16,7 @@ MARIADB_PROVIDES = mysql
 MARIADB_DEPENDENCIES = \
 	host-mariadb \
 	ncurses \
-	openssl \
+	libssl \
 	zlib \
 	libaio \
 	libxml2 \
package/mongodb/mongodb.mk +2 -2
index 54c904e51..cc9aa422e 100644
@@ -41,8 +41,8 @@ else
 MONGODB_SCONS_OPTS += --js-engine=none --allocator=system
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-MONGODB_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+MONGODB_DEPENDENCIES += libssl
 MONGODB_SCONS_OPTS += --ssl=SSL
 endif
 
package/mongoose/mongoose.mk +2 -2
index 36fd8f899..a0a548fba 100644
@@ -12,8 +12,8 @@ MONGOOSE_INSTALL_STAGING = YES
 
 MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -DMONGOOSE_NO_DL
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-MONGOOSE_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+MONGOOSE_DEPENDENCIES += libssl
 # directly linked
 MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz
 endif
package/monit/monit.mk +2 -2
index 32cef1e9c..f2586e334 100644
@@ -20,9 +20,9 @@ MONIT_CONF_OPTS += \
 	--without-pam \
 	--with-largefiles
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 MONIT_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
-MONIT_DEPENDENCIES += openssl
+MONIT_DEPENDENCIES += libssl
 else
 MONIT_CONF_OPTS += --without-ssl
 endif
package/mosh/Config.in +1 -1
index da8a305a0..9ca1f7901 100644
@@ -15,7 +15,7 @@ config BR2_PACKAGE_MOSH
 	depends on BR2_USE_WCHAR
 	select BR2_PACKAGE_PROTOBUF
 	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_NETTLE if !BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_NETTLE if !BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	# runtime dependency
 	select BR2_PACKAGE_OPENSSH if !BR2_PACKAGE_DROPBEAR_CLIENT
package/mosh/mosh.mk +2 -2
index 06502f6e0..216697443 100644
@@ -10,9 +10,9 @@ MOSH_DEPENDENCIES = zlib ncurses protobuf host-pkgconf
 MOSH_LICENSE = GPL-3.0+ with exception
 MOSH_LICENSE_FILES = COPYING COPYING.iOS
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 MOSH_CONF_OPTS += --with-crypto-library=openssl
-MOSH_DEPENDENCIES += openssl
+MOSH_DEPENDENCIES += libssl
 else
 MOSH_CONF_OPTS += --with-crypto-library=nettle
 MOSH_DEPENDENCIES += nettle
package/mosquitto/mosquitto.mk +2 -2
index c763f48ab..29e252161 100644
@@ -30,8 +30,8 @@ else
 MOSQUITTO_MAKE_OPTS += WITH_THREADING=no
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-MOSQUITTO_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+MOSQUITTO_DEPENDENCIES += libssl
 MOSQUITTO_MAKE_OPTS += WITH_TLS=yes
 else
 MOSQUITTO_MAKE_OPTS += WITH_TLS=no
package/msmtp/msmtp.mk +2 -2
index 1821d39ed..6497bd4a3 100644
@@ -22,9 +22,9 @@ else
 MSMTP_CONF_OPTS += --without-libsecret
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 MSMTP_CONF_OPTS += --with-ssl=openssl
-MSMTP_DEPENDENCIES += openssl
+MSMTP_DEPENDENCIES += libssl
 ifeq ($(BR2_STATIC_LIBS),y)
 # openssl uses zlib, so we need to explicitly link with it when static
 MSMTP_CONF_ENV += LIBS=-lz
package/mutt/mutt.mk +2 -2
index abd40e5dd..24a88c85b 100644
@@ -37,8 +37,8 @@ endif
 
 # SSL support is only used by imap or pop3 module
 ifneq ($(BR2_PACKAGET_MUTT_IMAP)$(BR2_PACKAGE_MUTT_POP3),)
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-MUTT_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+MUTT_DEPENDENCIES += libssl
 MUTT_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
 else
 MUTT_CONF_OPTS += --without-ssl
package/mysql/Config.in +1 -1
index 69ad58654..882342e99 100644
@@ -20,7 +20,7 @@ config BR2_PACKAGE_MARIADB
 	select BR2_PACKAGE_LIBAIO
 	select BR2_PACKAGE_LIBXML2
 	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_READLINE
 	select BR2_PACKAGE_HAS_MYSQL
 	help
package/neon/Config.in +1 -1
index 983134339..8bffea643 100644
@@ -15,7 +15,7 @@ config BR2_PACKAGE_NEON_ZLIB
 
 config BR2_PACKAGE_NEON_SSL
 	bool "SSL support"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  build with SSL support
 
package/neon/neon.mk +1 -1
index 1b8eb368c..b10fd8092 100644
@@ -22,7 +22,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_NEON_SSL),y)
 NEON_CONF_OPTS += --with-ssl
-NEON_DEPENDENCIES += openssl
+NEON_DEPENDENCIES += libssl
 else
 NEON_CONF_OPTS += --without-ssl
 endif
package/netatalk/Config.in +1 -1
index ce1731830..d6e96c0e0 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_NETATALK
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS
 	select BR2_PACKAGE_BERKELEYDB
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LIBEVENT
 	select BR2_PACKAGE_LIBGCRYPT
 	select BR2_PACKAGE_LIBGPG_ERROR
package/netatalk/netatalk.mk +1 -1
index 8e661a04a..5742eafd0 100644
@@ -10,7 +10,7 @@ NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
 # For 0001-Fix-setting-of-LD_LIBRARY_FLAGS-shlibpath_var.patch
 NETATALK_AUTORECONF = YES
 NETATALK_CONFIG_SCRIPTS = netatalk-config
-NETATALK_DEPENDENCIES = host-pkgconf openssl berkeleydb libgcrypt libgpg-error \
+NETATALK_DEPENDENCIES = host-pkgconf libssl berkeleydb libgcrypt libgpg-error \
 	libevent
 NETATALK_LICENSE = GPL-2.0+, LGPL-3.0+, MIT-like
 NETATALK_LICENSE_FILES = COPYING COPYRIGHT
package/netsnmp/Config.in +1 -1
index 57cc6b93f..3e7dce9c4 100644
@@ -52,7 +52,7 @@ config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
 
 config BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL
 	bool "Enable minimal internal OpenSSL code"
-	depends on !BR2_PACKAGE_OPENSSL
+	depends on !BR2_PACKAGE_LIBSSL
 	help
 	  Enable a minimal internal copy of OpenSSL usable for USM
 	  security. It will not enable the usage of SNMP over (D)TLS.
package/netsnmp/netsnmp.mk +2 -2
index abcf63d56..c394b7ead 100644
@@ -54,8 +54,8 @@ NETSNMP_CONF_OPTS += --without-nl
 endif
 
 # OpenSSL
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-NETSNMP_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+NETSNMP_DEPENDENCIES += libssl
 NETSNMP_CONF_OPTS += \
 	--with-openssl=$(STAGING_DIR)/usr/include/openssl \
 	--with-security-modules="tsm,usm" \
package/nginx-upload/Config.in +1 -1
index 6bc1c3dbd..c7d1207b5 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_NGINX_UPLOAD
 	bool "nginx-upload"
 	depends on BR2_PACKAGE_NGINX_HTTP
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  A module for nginx web server for handling file uploads
 	  using multipart/form-data encoding (RFC 1867).
package/nginx-upload/nginx-upload.mk +1 -1
index 738542571..62085df1e 100644
@@ -8,6 +8,6 @@ NGINX_UPLOAD_VERSION = 70bee48f1811eecd255ed094ce9f0fb560c390c3
 NGINX_UPLOAD_SITE = $(call github,vkholodkov,nginx-upload-module,$(NGINX_UPLOAD_VERSION))
 NGINX_UPLOAD_LICENSE = BSD-3-Clause
 NGINX_UPLOAD_LICENSE_FILES = LICENCE
-NGINX_UPLOAD_DEPENDENCIES = openssl
+NGINX_UPLOAD_DEPENDENCIES = libssl
 
 $(eval $(generic-package))
package/nginx/Config.in +5 -5
index 36fa69cd2..5cc63f4c9 100644
@@ -34,13 +34,13 @@ if BR2_PACKAGE_NGINX_HTTP
 
 config BR2_PACKAGE_NGINX_HTTP_CACHE
 	bool "http cache support"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 
 comment "http modules"
 
 config BR2_PACKAGE_NGINX_HTTP_SSL_MODULE
 	bool "ngx_http_ssl_module"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable ngx_http_ssl_module
 
@@ -119,7 +119,7 @@ config BR2_PACKAGE_NGINX_HTTP_RANDOM_INDEX_MODULE
 
 config BR2_PACKAGE_NGINX_HTTP_SECURE_LINK_MODULE
 	bool "ngx_http_secure_link_module"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable ngx_http_secure_link_module
 
@@ -288,7 +288,7 @@ if BR2_PACKAGE_NGINX_MAIL
 
 config BR2_PACKAGE_NGINX_MAIL_SSL_MODULE
 	bool "ngx_mail_ssl_module"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable ngx_mail_ssl_module
 
@@ -319,7 +319,7 @@ if BR2_PACKAGE_NGINX_STREAM
 
 config BR2_PACKAGE_NGINX_STREAM_SSL_MODULE
 	bool "ngx_stream_ssl_module"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable ngx_stream_ssl_module
 
package/nginx/nginx.mk +5 -5
index ceb80229d..2389cdd45 100644
@@ -110,7 +110,7 @@ endif
 # http server modules
 ifeq ($(BR2_PACKAGE_NGINX_HTTP),y)
 ifeq ($(BR2_PACKAGE_NGINX_HTTP_CACHE),y)
-NGINX_DEPENDENCIES += openssl
+NGINX_DEPENDENCIES += libssl
 else
 NGINX_CONF_OPTS += --without-http-cache
 endif
@@ -121,7 +121,7 @@ NGINX_CONF_OPTS += --with-http_v2_module
 endif
 
 ifeq ($(BR2_PACKAGE_NGINX_HTTP_SSL_MODULE),y)
-NGINX_DEPENDENCIES += openssl
+NGINX_DEPENDENCIES += libssl
 NGINX_CONF_OPTS += --with-http_ssl_module
 endif
 
@@ -146,7 +146,7 @@ NGINX_CONF_OPTS += --with-http_gzip_static_module
 endif
 
 ifeq ($(BR2_PACKAGE_NGINX_HTTP_SECURE_LINK_MODULE),y)
-NGINX_DEPENDENCIES += openssl
+NGINX_DEPENDENCIES += libssl
 NGINX_CONF_OPTS += --with-http_secure_link_module
 endif
 
@@ -205,7 +205,7 @@ ifeq ($(BR2_PACKAGE_NGINX_MAIL),y)
 NGINX_CONF_OPTS += --with-mail
 
 ifeq ($(BR2_PACKAGE_NGINX_MAIL_SSL_MODULE),y)
-NGINX_DEPENDENCIES += openssl
+NGINX_DEPENDENCIES += libssl
 NGINX_CONF_OPTS += --with-mail_ssl_module
 endif
 
@@ -221,7 +221,7 @@ ifeq ($(BR2_PACKAGE_NGINX_STREAM),y)
 NGINX_CONF_OPTS += --with-stream
 
 ifeq ($(BR2_PACKAGE_NGINX_STREAM_SSL_MODULE),y)
-NGINX_DEPENDENCIES += openssl
+NGINX_DEPENDENCIES += libssl
 NGINX_CONF_OPTS += --with-stream_ssl_module
 endif
 
package/nmap/nmap.mk +2 -2
index 37720e2ca..5d39a2bcf 100644
@@ -27,9 +27,9 @@ define NMAP_WRAPPER_EXEC
 endef
 NMAP_POST_PATCH_HOOKS += NMAP_WRAPPER_EXEC
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 NMAP_CONF_OPTS += --with-openssl="$(STAGING_DIR)/usr"
-NMAP_DEPENDENCIES += host-pkgconf openssl
+NMAP_DEPENDENCIES += host-pkgconf libssl
 NMAP_LIBS_FOR_STATIC_LINK += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
 else
 NMAP_CONF_OPTS += --without-openssl
package/ntp/Config.in +1 -1
index 1af02dbc0..5dae08564 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_NTP
 	bool "ntp"
 	select BR2_PACKAGE_LIBEVENT
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Network Time Protocol suite/programs.
 	  Provides things like ntpd, ntpdate, ntpq, etc...
package/ntp/ntp.mk +1 -1
index c70d6e635..391d99de2 100644
@@ -7,7 +7,7 @@
 NTP_VERSION_MAJOR = 4.2
 NTP_VERSION = $(NTP_VERSION_MAJOR).8p10
 NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
-NTP_DEPENDENCIES = host-pkgconf libevent openssl $(if $(BR2_PACKAGE_BUSYBOX),busybox)
+NTP_DEPENDENCIES = host-pkgconf libevent libssl $(if $(BR2_PACKAGE_BUSYBOX),busybox)
 NTP_LICENSE = NTP
 NTP_LICENSE_FILES = COPYRIGHT
 NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no
package/nut/nut.mk +2 -2
index 332ccf907..8f9a18c2c 100644
@@ -82,8 +82,8 @@ else
 NUT_CONF_OPTS += --without-snmp
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-NUT_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+NUT_DEPENDENCIES += libssl
 NUT_CONF_OPTS += --with-ssl
 else
 NUT_CONF_OPTS += --without-ssl
package/omniorb/omniorb.mk +2 -2
index 557e5d161..af095de6f 100644
@@ -27,9 +27,9 @@ HOST_OMNIORB_CONF_OPTS = ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
 OMNIORB_CONF_OPTS += --disable-longdouble
 HOST_OMNIORB_CONF_OPTS += --disable-longdouble
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 OMNIORB_CONF_OPTS += --with-openssl
-OMNIORB_DEPENDENCIES += openssl
+OMNIORB_DEPENDENCIES += libssl
 else
 OMNIORB_CONF_OPTS += --without-openssl
 endif
package/openipmi/openipmi.mk +2 -2
index 3f4f11113..b5beb7c4c 100644
@@ -27,8 +27,8 @@ ifeq ($(BR2_PACKAGE_GDBM),y)
 OPENIPMI_DEPENDENCIES += gdbm
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-OPENIPMI_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+OPENIPMI_DEPENDENCIES += libssl
 OPENIPMI_CONF_OPTS += --with-openssl=yes
 else
 OPENIPMI_CONF_OPTS += --with-openssl=no
package/openldap/openldap.mk +4 -4
index 90ff1123b..f86ecb79e 100644
@@ -12,9 +12,9 @@ OPENLDAP_LICENSE_FILES = LICENSE
 OPENLDAP_INSTALL_STAGING = YES
 OPENLDAP_DEPENDENCIES = host-pkgconf
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 OPENLDAP_TLS = openssl
-OPENLDAP_DEPENDENCIES += openssl
+OPENLDAP_DEPENDENCIES += libssl
 else ifeq ($(BR2_PACKAGE_GNUTLS),y)
 OPENLDAP_TLS = gnutls
 OPENLDAP_DEPENDENCIES += gnutls
@@ -28,9 +28,9 @@ else
 OPENLDAP_TLS = no
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 OPENLDAP_MP = bignum
-OPENLDAP_DEPENDENCIES += openssl
+OPENLDAP_DEPENDENCIES += libssl
 OPENLDAP_CONF_ENV = LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libssl libcrypto`"
 else ifeq ($(BR2_PACKAGE_GMP),y)
 OPENLDAP_MP = gmp
package/openssh/Config.in +1 -1
index 75911402a..a21ea5f73 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_OPENSSH
 	bool "openssh"
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  A free version of the SSH protocol suite of network connectivity
package/openssh/openssh.mk +1 -1
index 38a32bf54..ec127d491 100644
@@ -30,7 +30,7 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 OPENSSH_CONF_OPTS += --without-pie
 endif
 
-OPENSSH_DEPENDENCIES = zlib openssl
+OPENSSH_DEPENDENCIES = zlib libssl
 
 ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
 OPENSSH_DEPENDENCIES += cryptodev-linux
package/openswan/openswan.mk +2 -2
index d9628edd9..157d382a3 100644
@@ -20,8 +20,8 @@ OPENSWAN_DEPENDENCIES += libcurl
 OPENSWAN_MAKE_OPTS += USE_LIBCURL=true
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-OPENSWAN_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+OPENSWAN_DEPENDENCIES += libssl
 OPENSWAN_MAKE_OPTS += HAVE_OPENSSL=true
 ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
 OPENSWAN_MAKE_OPTS += HAVE_OCF=true
package/openvmtools/openvmtools.mk +2 -2
index cc71324ff..6c4860ff2 100644
@@ -25,9 +25,9 @@ ifeq ($(BR2_PACKAGE_LIBFUSE),y)
 OPENVMTOOLS_DEPENDENCIES += libfuse
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 OPENVMTOOLS_CONF_OPTS += --with-ssl
-OPENVMTOOLS_DEPENDENCIES += openssl
+OPENVMTOOLS_DEPENDENCIES += libssl
 else
 OPENVMTOOLS_CONF_OPTS += --without-ssl
 endif
package/openvpn/Config.in +1 -1
index 0a1675573..304986123 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_OPENVPN
 	bool "openvpn"
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  OpenVPN is a full-featured SSL VPN solution which can
 	  accomodate a wide range of configurations, including road
package/openvpn/openvpn.mk +1 -1
index 7cc572e4e..bc849590c 100644
@@ -7,7 +7,7 @@
 OPENVPN_VERSION = 2.4.3
 OPENVPN_SOURCE = openvpn-$(OPENVPN_VERSION).tar.xz
 OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
-OPENVPN_DEPENDENCIES = host-pkgconf openssl
+OPENVPN_DEPENDENCIES = host-pkgconf libssl
 OPENVPN_LICENSE = GPL-2.0
 OPENVPN_LICENSE_FILES = COPYRIGHT.GPL
 OPENVPN_CONF_OPTS = \
package/opusfile/opusfile.mk +2 -2
index 846eedd22..3391d0623 100644
@@ -11,8 +11,8 @@ OPUSFILE_LICENSE = BSD-3-Clause
 OPUSFILE_LICENSE_FILES = COPYING
 OPUSFILE_INSTALL_STAGING = YES
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-OPUSFILE_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+OPUSFILE_DEPENDENCIES += libssl
 else
 OPUSFILE_CONF_OPTS += --disable-http
 endif
package/oracle-mysql/oracle-mysql.mk +2 -2
index 7da5c547d..10c64f2bd 100644
@@ -61,8 +61,8 @@ define HOST_ORACLE_MYSQL_INSTALL_CMDS
 	$(INSTALL) -m 0755  $(@D)/sql/gen_lex_hash $(HOST_DIR)/bin/
 endef
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-ORACLE_MYSQL_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+ORACLE_MYSQL_DEPENDENCIES += libssl
 endif
 
 ifeq ($(BR2_PACKAGE_ZLIB),y)
package/paho-mqtt-c/paho-mqtt-c.mk +2 -2
index 22ef2effa..8bab7fd47 100644
@@ -10,8 +10,8 @@ PAHO_MQTT_C_LICENSE = EPL-1.0 or BSD-3-Clause
 PAHO_MQTT_C_LICENSE_FILES = epl-v10 edl-v10
 PAHO_MQTT_C_INSTALL_STAGING = YES
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-PAHO_MQTT_C_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+PAHO_MQTT_C_DEPENDENCIES += libssl
 PAHO_MQTT_C_CONF_OPTS += -DPAHO_WITH_SSL=TRUE
 else
 PAHO_MQTT_C_CONF_OPTS += -DPAHO_WITH_SSL=FALSE
package/perl-crypt-openssl-random/Config.in +1 -1
index 2ceb78dfd..c26449f61 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_PERL_CRYPT_OPENSSL_RANDOM
 	bool "perl-crypt-openssl-random"
 	depends on !BR2_STATIC_LIBS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  OpenSSL/LibreSSL pseudo-random number generator access
 
package/perl-crypt-openssl-random/perl-crypt-openssl-random.mk +1 -1
index de029e9af..f575d0de4 100644
@@ -7,7 +7,7 @@
 PERL_CRYPT_OPENSSL_RANDOM_VERSION = 0.11
 PERL_CRYPT_OPENSSL_RANDOM_SOURCE = Crypt-OpenSSL-Random-$(PERL_CRYPT_OPENSSL_RANDOM_VERSION).tar.gz
 PERL_CRYPT_OPENSSL_RANDOM_SITE = $(BR2_CPAN_MIRROR)/authors/id/R/RU/RURBAN
-PERL_CRYPT_OPENSSL_RANDOM_DEPENDENCIES = openssl
+PERL_CRYPT_OPENSSL_RANDOM_DEPENDENCIES = libssl
 PERL_CRYPT_OPENSSL_RANDOM_LICENSE = Artistic or GPL-1.0+
 PERL_CRYPT_OPENSSL_RANDOM_LICENSE_FILES = LICENSE
 
package/perl-net-ssleay/Config.in +1 -1
index 80178e0b9..a2bc63018 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_PERL_NET_SSLEAY
 	bool "perl-net-ssleay"
 	depends on !BR2_STATIC_LIBS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Perl extension for using OpenSSL
 
package/perl-net-ssleay/perl-net-ssleay.mk +1 -1
index 03a039e06..575ab7f38 100644
@@ -7,7 +7,7 @@
 PERL_NET_SSLEAY_VERSION = 1.72
 PERL_NET_SSLEAY_SOURCE = Net-SSLeay-$(PERL_NET_SSLEAY_VERSION).tar.gz
 PERL_NET_SSLEAY_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MI/MIKEM
-PERL_NET_SSLEAY_DEPENDENCIES = openssl
+PERL_NET_SSLEAY_DEPENDENCIES = libssl
 PERL_NET_SSLEAY_LICENSE = OpenSSL
 PERL_NET_SSLEAY_LICENSE_FILES = LICENSE
 
package/php/php.mk +1 -1
index b1bd97ca9..8c3afd783 100644
@@ -129,7 +129,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_PHP_EXT_OPENSSL),y)
 PHP_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr
-PHP_DEPENDENCIES += openssl
+PHP_DEPENDENCIES += libssl
 # openssl needs zlib, but the configure script forgets to link against
 # it causing detection failures with static linking
 PHP_STATIC_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
package/poco/Config.in +2 -2
index b3b247f90..677dc54d1 100644
@@ -30,14 +30,14 @@ config BR2_PACKAGE_POCO_NET
 
 config BR2_PACKAGE_POCO_CRYPTO
 	bool "crypto"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 
 config BR2_PACKAGE_POCO_NETSSL_OPENSSL
 	bool "netssl_openssl"
 	select BR2_PACKAGE_POCO_NET
 	select BR2_PACKAGE_POCO_CRYPTO
 	select BR2_PACKAGE_POCO_UTIL
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 
 config BR2_PACKAGE_POCO_ZIP
 	bool "zip"
package/postgresql/postgresql.mk +2 -2
index 62b41cbea..1af5076b9 100644
@@ -53,8 +53,8 @@ POSTGRESQL_DEPENDENCIES += host-zic
 POSTGRESQL_CONF_ENV += ZIC="$(ZIC)"
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-POSTGRESQL_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+POSTGRESQL_DEPENDENCIES += libssl
 POSTGRESQL_CONF_OPTS += --with-openssl
 endif
 
package/pound/Config.in +1 -1
index 91c29ea7a..c22e71fd7 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_POUND
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  The Pound program is a reverse proxy, load balancer and HTTPS
 	  front-end for Web server(s). Pound was developed to enable
package/pound/pound.mk +1 -1
index 6f7cc848f..9bf06a5b1 100644
@@ -9,7 +9,7 @@ POUND_SITE = http://www.apsis.ch/pound
 POUND_SOURCE = Pound-$(POUND_VERSION).tgz
 POUND_LICENSE = GPL-3.0+
 POUND_LICENSE_FILES = GPL.txt
-POUND_DEPENDENCIES = openssl
+POUND_DEPENDENCIES = libssl
 
 # Force owner/group to us, otherwise it will try proxy:proxy by
 # default.
package/pure-ftpd/pure-ftpd.mk +2 -2
index 0bb5f3cd4..08af34186 100644
@@ -31,9 +31,9 @@ ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
 PURE_FTPD_DEPENDENCIES += libsodium
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 PURE_FTPD_CONF_OPTS += --with-tls
-PURE_FTPD_DEPENDENCIES += openssl
+PURE_FTPD_DEPENDENCIES += libssl
 ifeq ($(BR2_STATIC_LIBS),y)
 PURE_FTPD_CONF_ENV += LIBS='-lssl -lcrypto -lz'
 endif
package/python/Config.in +2 -2
index 054ccd2aa..07e4bb0df 100644
@@ -75,7 +75,7 @@ config BR2_PACKAGE_PYTHON_READLINE
 
 config BR2_PACKAGE_PYTHON_SSL
 	bool "ssl"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  _ssl module for Python (required for https in urllib etc).
 
@@ -123,7 +123,7 @@ config BR2_PACKAGE_PYTHON_ZLIB
 
 config BR2_PACKAGE_PYTHON_HASHLIB
 	bool "hashlib module"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  hashlib support in Python
 
package/python/python.mk +2 -2
index cf1ddfb57..a9d741eae 100644
@@ -92,7 +92,7 @@ PYTHON_CONF_OPTS += --disable-sqlite3
 endif
 
 ifeq ($(BR2_PACKAGE_PYTHON_SSL),y)
-PYTHON_DEPENDENCIES += openssl
+PYTHON_DEPENDENCIES += libssl
 else
 PYTHON_CONF_OPTS += --disable-ssl
 endif
@@ -126,7 +126,7 @@ PYTHON_CONF_OPTS += --disable-zlib
 endif
 
 ifeq ($(BR2_PACKAGE_PYTHON_HASHLIB),y)
-PYTHON_DEPENDENCIES += openssl
+PYTHON_DEPENDENCIES += libssl
 else
 PYTHON_CONF_OPTS += --disable-hashlib
 endif
package/python3/Config.in +1 -1
index 35f57e65c..cd958f487 100644
@@ -76,7 +76,7 @@ config BR2_PACKAGE_PYTHON3_READLINE
 
 config BR2_PACKAGE_PYTHON3_SSL
 	bool "ssl"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  _ssl module for Python3 (required for https in urllib etc).
 
package/python3/python3.mk +1 -1
index 80905ddbf..8322d2ce8 100644
@@ -91,7 +91,7 @@ PYTHON3_CONF_OPTS += --disable-sqlite3
 endif
 
 ifeq ($(BR2_PACKAGE_PYTHON3_SSL),y)
-PYTHON3_DEPENDENCIES += openssl
+PYTHON3_DEPENDENCIES += libssl
 else
 PYTHON3_CONF_OPTS += --disable-openssl
 endif
package/qt-webkit-kiosk/Config.in +1 -1
index 71b4f8346..998577e8c 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_QT_WEBKIT_KIOSK
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # qt5webkit -> icu
 	depends on !BR2_BINFMT_FLAT # qt5webkit -> icu
 	depends on !BR2_MIPS_SOFT_FLOAT # qt5webkit
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_QT5BASE_GUI
 	select BR2_PACKAGE_QT5BASE_WIDGETS
 	select BR2_PACKAGE_QT5WEBKIT
package/qt/Config.in +1 -1
index 7710b09d2..959a968d1 100644
@@ -483,7 +483,7 @@ config BR2_PACKAGE_QT_STL
 config BR2_PACKAGE_QT_OPENSSL
 	bool "Enable OpenSSL support"
 	depends on BR2_PACKAGE_QT_NETWORK
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable support for the OpenSSL encryption library. If you use
 	  QSslSocket say y here, otherwise, say no to save space on the
package/qt/qt.mk +1 -1
index 1dcb05d6a..6c2105769 100644
@@ -324,7 +324,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_QT_OPENSSL),y)
 QT_CONFIGURE_OPTS += -openssl
-QT_DEPENDENCIES += openssl
+QT_DEPENDENCIES += libssl
 else
 QT_CONFIGURE_OPTS += -no-openssl
 endif
package/qt5/qt5base/qt5base.mk +2 -2
index bbbdd4120..daeebff7b 100644
@@ -148,8 +148,8 @@ else
 QT5BASE_CONFIGURE_OPTS += -no-eglfs
 endif
 
-QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_OPENSSL),-openssl,-no-openssl)
-QT5BASE_DEPENDENCIES   += $(if $(BR2_PACKAGE_OPENSSL),openssl)
+QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_LIBSSL),-openssl,-no-openssl)
+QT5BASE_DEPENDENCIES   += $(if $(BR2_PACKAGE_LIBSSL),libssl)
 
 QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_FONTCONFIG),-fontconfig,-no-fontconfig)
 QT5BASE_DEPENDENCIES   += $(if $(BR2_PACKAGE_QT5BASE_FONTCONFIG),fontconfig)
package/qt5/qt5enginio/Config.in +1 -1
index 102058e7c..13ae5358f 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_QT5ENGINIO
 	bool "qt5enginio"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_QT5BASE
 	select BR2_PACKAGE_QT5BASE_GUI
 	select BR2_PACKAGE_QT5BASE_NETWORK
package/qt5/qt5enginio/qt5enginio.mk +1 -1
index 5590d7cf4..dcd61ff40 100644
@@ -9,7 +9,7 @@
 QT5ENGINIO_VERSION = 1.6.2
 QT5ENGINIO_SITE = $(QT5_SITE)
 QT5ENGINIO_SOURCE = qtenginio-opensource-src-$(QT5ENGINIO_VERSION).tar.xz
-QT5ENGINIO_DEPENDENCIES = openssl qt5base
+QT5ENGINIO_DEPENDENCIES = libssl qt5base
 QT5ENGINIO_INSTALL_STAGING = YES
 
 QT5ENGINIO_LICENSE = GPL-3.0 or LGPL-2.1 with exception or LGPL-3.0, GFDL-1.3 (docs)
package/rabbitmq-c/rabbitmq-c.mk +2 -2
index eef09ec0b..d8c80be17 100644
@@ -24,9 +24,9 @@ endif
 # CMake OpenSSL detection is buggy, and doesn't properly use
 # pkg-config, so it fails when statically linking. See
 # https://gitlab.kitware.com/cmake/cmake/issues/16885.
-ifeq ($(BR2_PACKAGE_OPENSSL):$(BR2_STATIC_LIBS),y:)
+ifeq ($(BR2_PACKAGE_LIBSSL):$(BR2_STATIC_LIBS),y:)
 RABBITMQ_C_CONF_OPTS += -DENABLE_SSL_SUPPORT=ON
-RABBITMQ_C_DEPENDENCIES += openssl
+RABBITMQ_C_DEPENDENCIES += libssl
 else
 RABBITMQ_C_CONF_OPTS += -DENABLE_SSL_SUPPORT=OFF
 endif
package/rabbitmq-server/Config.in +1 -1
index 6a323aff9..f3572d7db 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_RABBITMQ_SERVER
 	bool "rabbitmq-server"
 	depends on BR2_PACKAGE_ERLANG
 	select BR2_PACKAGE_LIBXSLT
-	select BR2_PACKAGE_OPENSSL # Required to build Erlang's crypto and ssl
+	select BR2_PACKAGE_LIBSSL # Required to build Erlang's crypto and ssl
 	                           # applications
 	help
 	  High-performance AMQP-compliant message broker written in Erlang.
package/rdesktop/Config.in +1 -1
index 0335bee2a..aff0e0c6a 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_RDESKTOP
 	bool "rdesktop"
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_PACKAGE_XORG7
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_XLIB_LIBX11
 	select BR2_PACKAGE_XLIB_LIBXT
 	help
package/rdesktop/rdesktop.mk +1 -1
index da8a80ef9..0da9ee266 100644
@@ -6,7 +6,7 @@
 
 RDESKTOP_VERSION = 1.8.3
 RDESKTOP_SITE = http://downloads.sourceforge.net/project/rdesktop/rdesktop/$(RDESKTOP_VERSION)
-RDESKTOP_DEPENDENCIES = host-pkgconf openssl xlib_libX11 xlib_libXt \
+RDESKTOP_DEPENDENCIES = host-pkgconf libssl xlib_libX11 xlib_libXt \
 	$(if $(BR2_PACKAGE_ALSA_LIB_PCM),alsa-lib) \
 	$(if $(BR2_PACKAGE_LIBAO),libao) \
 	$(if $(BR2_PACKAGE_LIBSAMPLERATE),libsamplerate)
package/rhash/rhash.mk +2 -2
index 53f49d8d3..1efe679da 100644
@@ -14,8 +14,8 @@ RHASH_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
 RHASH_ADDLDFLAGS = $(TARGET_NLS_LIBS)
 RHASH_ADDCFLAGS = $(if $(BR2_SYSTEM_ENABLE_NLS),-DUSE_GETTEXT)
 
-ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx)
-RHASH_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL)x$(BR2_STATIC_LIBS),yx)
+RHASH_DEPENDENCIES += libssl
 RHASH_ADDCFLAGS += -DOPENSSL_RUNTIME -rdynamic
 RHASH_ADDLDFLAGS += -ldl
 endif
package/rtmpdump/rtmpdump.mk +2 -2
index f5d430ce3..4ff5c4545 100644
@@ -16,8 +16,8 @@ RTMPDUMP_DEPENDENCIES = zlib
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 RTMPDUMP_DEPENDENCIES += gnutls
 RTMPDUMP_CRYPTO = GNUTLS
-else ifeq ($(BR2_PACKAGE_OPENSSL),y)
-RTMPDUMP_DEPENDENCIES += openssl
+else ifeq ($(BR2_PACKAGE_LIBSSL),y)
+RTMPDUMP_DEPENDENCIES += libssl
 RTMPDUMP_CRYPTO = OPENSSL
 else
 # no crypto
package/rtorrent/Config.in +1 -1
index 190e50fe2..4fbaa595e 100644
@@ -8,7 +8,7 @@ config BR2_PACKAGE_RTORRENT
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBTORRENT
 	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  BitTorrent Client using libtorrent
 
package/ruby/ruby.mk +2 -2
index 330281189..5f72595c3 100644
@@ -64,8 +64,8 @@ endif
 ifeq ($(BR2_PACKAGE_NCURSES),y)
 RUBY_DEPENDENCIES += ncurses
 endif
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-RUBY_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+RUBY_DEPENDENCIES += libssl
 endif
 ifeq ($(BR2_PACKAGE_READLINE),y)
 RUBY_DEPENDENCIES += readline
package/sconeserver/sconeserver.mk +2 -2
index cf7bcbcb1..cd4af7708 100644
@@ -22,8 +22,8 @@ SCONESERVER_CONF_OPTS += \
 	--with-xml2-config="$(STAGING_DIR)/usr/bin/xml2-config"
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SCONESERVER_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+SCONESERVER_DEPENDENCIES += libssl
 SCONESERVER_CONF_OPTS += --with-ssl
 ifeq ($(BR2_STATIC_LIBS),y)
 SCONESERVER_CONF_ENV += SSL_LIBADD=-lz
package/scrypt/Config.in +1 -1
index e6d1ac1a6..77e4b4990 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_SCRYPT
 	bool "scrypt"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  A password-based key derivation function specifically
 	  designed to make it costly to perform large-scale custom
package/scrypt/scrypt.mk +1 -1
index ae5a64e71..caeaaa69f 100644
@@ -9,7 +9,7 @@ SCRYPT_SOURCE = scrypt-$(SCRYPT_VERSION).tgz
 SCRYPT_SITE = http://www.tarsnap.com/scrypt
 SCRYPT_LICENSE = BSD-2-Clause
 SCRYPT_LICENSE_FILES = main.c
-SCRYPT_DEPENDENCIES = openssl
+SCRYPT_DEPENDENCIES = libssl
 SCRYPT_INSTALL_STAGING = YES
 
 $(eval $(autotools-package))
package/shairport-sync/Config.in +1 -1
index c2a556540..aecfdfd89 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_SHAIRPORT_SYNC
 	select BR2_PACKAGE_ALSA_LIB_MIXER
 	select BR2_PACKAGE_LIBCONFIG
 	select BR2_PACKAGE_LIBDAEMON
-	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
+	select BR2_PACKAGE_LIBSSL if !BR2_PACKAGE_MBEDTLS
 	select BR2_PACKAGE_POPT
 	help
 	  Shairport Sync emulates an AirPort Express for the purpose of
package/shairport-sync/shairport-sync.mk +3 -3
index 208a9b3b1..3a7a96a13 100644
@@ -31,9 +31,9 @@ else
 SHAIRPORT_SYNC_CONF_OPTS += --with-tinysvcmdns
 endif
 
-# OpenSSL or mbedTLS
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SHAIRPORT_SYNC_DEPENDENCIES += openssl
+# LIBSSL or mbedTLS
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+SHAIRPORT_SYNC_DEPENDENCIES += libssl
 SHAIRPORT_SYNC_CONF_OPTS += --with-ssl=openssl
 else
 SHAIRPORT_SYNC_DEPENDENCIES += mbedtls
package/shellinabox/Config.in +1 -1
index 63a298dca..811eed3b7 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_SHELLINABOX
 	bool "shellinabox"
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS # dlfcn.h
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  Shell In A Box implements a web server that can export
package/shellinabox/shellinabox.mk +1 -1
index 1db62e609..cdde30d1e 100644
@@ -15,7 +15,7 @@ SHELLINABOX_AUTORECONF = YES
 # The OpenSSL support is supposed to be optional, but in practice,
 # with OpenSSL disabled, it fails to build. See
 # https://github.com/shellinabox/shellinabox/issues/385.
-SHELLINABOX_DEPENDENCIES = zlib openssl
+SHELLINABOX_DEPENDENCIES = zlib libssl
 SHELLINABOX_CONF_OPTS = \
 	--disable-runtime-loading \
 	--enable-ssl
package/sngrep/sngrep.mk +2 -2
index 67ef882e2..87b3912a7 100644
@@ -17,8 +17,8 @@ SNGREP_CONF_ENV += \
 SNGREP_CONF_OPTS += --disable-unicode
 
 # openssl and gnutls can't be enabled at the same time.
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SNGREP_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+SNGREP_DEPENDENCIES += libssl
 SNGREP_CONF_OPTS += --with-openssl --without-gnutls
 # gnutls support also requires libgcrypt
 else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy)
package/snmppp/Config.in +1 -1
index 8d284673b..b772fb4f6 100644
@@ -21,7 +21,7 @@ config BR2_PACKAGE_SNMPPP_LOGGING
 config BR2_PACKAGE_SNMPPP_SNMPV3
 	bool "enable SNMPv3"
 	default y
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enable optional support for SNMP++. This selects OpenSSL.
 
package/snmppp/snmppp.mk +1 -1
index 67410d9e4..d18e19ed0 100644
@@ -15,7 +15,7 @@ SNMPPP_LICENSE_FILES = src/v3.cpp
 
 ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
 SNMPPP_CONF_OPTS += --enable-snmpv3
-SNMPPP_DEPENDENCIES += openssl
+SNMPPP_DEPENDENCIES += libssl
 else
 SNMPPP_CONF_OPTS += --disable-snmpv3
 endif
package/socat/socat.mk +2 -2
index 97f6c5b14..332a6ae4e 100644
@@ -31,8 +31,8 @@ endif
 
 SOCAT_DEPENDENCIES = host-autoconf
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SOCAT_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+SOCAT_DEPENDENCIES += libssl
 else
 SOCAT_CONF_OPTS += --disable-openssl
 endif
package/sofia-sip/sofia-sip.mk +2 -2
index 831b9ea54..bb0db0a33 100644
@@ -19,9 +19,9 @@ else
 SOFIA_SIP_CONF_OPTS += --without-glib
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 SOFIA_SIP_CONF_OPTS += --with-openssl
-SOFIA_SIP_DEPENDENCIES += openssl
+SOFIA_SIP_DEPENDENCIES += libssl
 else
 SOFIA_SIP_CONF_OPTS += --without-openssl
 endif
package/softether/Config.in +1 -1
index 55e542677..864fdbdb7 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_SOFTETHER
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_USE_WCHAR
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_READLINE
 	help
 	  The SoftEther Server is a fully integrated implementation of the SSTP,
package/softether/softether.mk +2 -2
index fd416fd47..33d20c40b 100644
@@ -8,7 +8,7 @@ SOFTETHER_VERSION = 1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a
 SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION))
 SOFTETHER_LICENSE = GPL-2.0
 SOFTETHER_LICENSE_FILES = LICENSE
-SOFTETHER_DEPENDENCIES = host-softether openssl readline
+SOFTETHER_DEPENDENCIES = host-softether libssl readline
 SOFTETHER_AUTORECONF = YES
 
 ifeq ($(BR2_ENABLE_LOCALE),)
@@ -26,7 +26,7 @@ SOFTETHER_CONF_OPTS = \
 	--with-zlib="$(STAGING_DIR)/usr"
 
 # host-libiconv does not exist, therefore we need this extra line
-HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-openssl host-readline
+HOST_SOFTETHER_DEPENDENCIES = host-pkgconf host-libssl host-readline
 
 # target build creates the file hamcore.se2 which needs the host variant of
 # hamcorebuilder, for details see http://www.vpnusers.com/viewtopic.php?p=5426
package/spice/Config.in +1 -1
index 2241b55b3..3973a7b39 100644
@@ -9,7 +9,7 @@ config BR2_PACKAGE_SPICE
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
 	select BR2_PACKAGE_JPEG
 	select BR2_PACKAGE_LIBGLIB2
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_PIXMAN
 	select BR2_PACKAGE_SPICE_PROTOCOL
 	help
package/spice/spice.mk +1 -1
index 7b09f39fe..f90d04e44 100644
@@ -13,7 +13,7 @@ SPICE_INSTALL_STAGING = YES
 SPICE_DEPENDENCIES = \
 	jpeg \
 	libglib2 \
-	openssl \
+	libssl \
 	pixman \
 	spice-protocol
 
package/sqlcipher/Config.in +1 -1
index 98b2f8955..6a9152a1a 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_SQLCIPHER
 	bool "sqlcipher"
 	depends on !BR2_PACKAGE_SQLITE
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  SQLCipher is an SQLite extension that provides 256 bits AES
 	  encryption of database files. Note that it is a fork of SQLite
package/sqlcipher/sqlcipher.mk +1 -1
index db94d06c5..9b3686c07 100644
@@ -6,7 +6,7 @@
 
 SQLCIPHER_VERSION = v3.2.0
 SQLCIPHER_SITE = $(call github,sqlcipher,sqlcipher,$(SQLCIPHER_VERSION))
-SQLCIPHER_DEPENDENCIES = openssl host-tcl
+SQLCIPHER_DEPENDENCIES = libssl host-tcl
 SQLCIPHER_INSTALL_STAGING = YES
 
 SQLCIPHER_CONF_ENV = \
package/squid/squid.mk +2 -2
index bcb3744de..1e2aa9d97 100644
@@ -50,9 +50,9 @@ else
 SQUID_CONF_ENV += squid_cv_gnu_atomics=no
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 SQUID_CONF_OPTS += --with-openssl
-SQUID_DEPENDENCIES += openssl
+SQUID_DEPENDENCIES += libssl
 else
 SQUID_CONF_OPTS += --without-openssl
 endif
package/strongswan/Config.in +1 -1
index 5119706f5..9db78fda0 100644
@@ -31,7 +31,7 @@ choice
 
 config BR2_PACKAGE_STRONGSWAN_OPENSSL
 	bool "OpenSSL"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 
 config BR2_PACKAGE_STRONGSWAN_GCRYPT
 	bool "libgcrypt"
package/swupdate/Config.in +1 -1
index dbc69f1fe..5607724b6 100644
@@ -25,7 +25,7 @@ config BR2_PACKAGE_SWUPDATE
 	    Note that for LuaJIT support, you need to set
 	    CONFIG_LUAVERSION="jit-5.1".
 	  * Select BR2_LIBCURL if you want to use the download feature.
-	  * Select BR2_PACKAGE_OPENSSL is you want to add encryption support.
+	  * Select BR2_PACKAGE_LIBSSL is you want to add encryption support.
 	  * Select BR2_PACKAGE_MTD if you want to use swupdate with UBI
 	    partitions.
 	  * Select BR2_PACKAGE_ZLIB if you want to deal with gzip compressed
package/swupdate/swupdate.mk +2 -2
index ee92adddf..5b2b2750b 100644
@@ -55,8 +55,8 @@ SWUPDATE_MAKE_ENV += HAVE_LIBMTD=n
 SWUPDATE_MAKE_ENV += HAVE_LIBUBI=n
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SWUPDATE_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+SWUPDATE_DEPENDENCIES += libssl
 SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y
 SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y
 else
package/sylpheed/sylpheed.mk +2 -2
index 14107f0a6..4ec64dad7 100644
@@ -23,8 +23,8 @@ endef
 
 SYLPHEED_PRE_CONFIGURE_HOOKS += SYLPHEED_PRECONFIGURE
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SYLPHEED_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+SYLPHEED_DEPENDENCIES += libssl
 SYLPHEED_CONF_OPTS += --enable-ssl
 else
 SYLPHEED_CONF_OPTS += --disable-ssl
package/synergy/Config.in +1 -1
index 3bb8b8e98..917fb1af3 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_SYNERGY
 	depends on BR2_USE_WCHAR
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBCURL
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_XLIB_LIBX11
 	select BR2_PACKAGE_XLIB_LIBXTST
 	help
package/synergy/synergy.mk +1 -1
index 76a4004f0..3a066c7fa 100644
@@ -8,7 +8,7 @@ SYNERGY_VERSION = v1.8.8-stable
 SYNERGY_SITE = $(call github,symless,synergy,$(SYNERGY_VERSION))
 SYNERGY_LICENSE = GPL-2.0
 SYNERGY_LICENSE_FILES = LICENSE
-SYNERGY_DEPENDENCIES = libcurl openssl xlib_libX11 xlib_libXtst
+SYNERGY_DEPENDENCIES = libcurl libssl xlib_libX11 xlib_libXtst
 
 ifeq ($(BR2_PACKAGE_XLIB_LIBXEXT),y)
 SYNERGY_DEPENDENCIES += xlib_libXext
package/syslog-ng/Config.in +1 -1
index fbc236221..a11b59f47 100644
@@ -7,7 +7,7 @@ config BR2_PACKAGE_SYSLOG_NG
 	select BR2_PACKAGE_EVENTLOG
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_PCRE
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  syslog-ng is an enhanced log daemon, supporting a wide range
 	  of input and output methods: syslog, unstructured text,
package/syslog-ng/syslog-ng.mk +1 -1
index 325fac584..06ee610d3 100644
@@ -9,7 +9,7 @@ SYSLOG_NG_SITE = https://github.com/balabit/syslog-ng/releases/download/syslog-n
 SYSLOG_NG_LICENSE = LGPL-2.1+ (syslog-ng core), GPL-2.0+ (modules)
 SYSLOG_NG_LICENSE_FILES = COPYING
 SYSLOG_NG_DEPENDENCIES = host-bison host-flex host-pkgconf \
-	eventlog libglib2 openssl pcre
+	eventlog libglib2 libssl pcre
 # rabbit-mq needs -lrt
 SYSLOG_NG_CONF_ENV = LIBS=-lrt
 SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
package/thrift/Config.in +1 -1
index 0ee3f000d..facf8cd8a 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_THRIFT
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	select BR2_PACKAGE_BOOST
 	select BR2_PACKAGE_LIBEVENT
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  The Apache Thrift software framework, for scalable cross-language
package/tinc/Config.in +1 -1
index 837f556b3..6372d4818 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_TINC
 	depends on !BR2_STATIC_LIBS # tinc requires libdl for OpenSSL
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LZO
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  tinc is a Virtual Private Network (VPN) daemon that uses
package/tinc/tinc.mk +1 -1
index f537d4642..7f8547ba1 100644
@@ -6,7 +6,7 @@
 
 TINC_VERSION = 1.0.30
 TINC_SITE = http://www.tinc-vpn.org/packages
-TINC_DEPENDENCIES = lzo openssl zlib
+TINC_DEPENDENCIES = lzo libssl zlib
 TINC_LICENSE = GPL-2.0+ with OpenSSL exception
 TINC_LICENSE_FILES = COPYING COPYING.README
 TINC_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=c99"
package/tn5250/tn5250.mk +2 -2
index 4c457a5d9..3f45da0b5 100644
@@ -11,10 +11,10 @@ TN5250_DEPENDENCIES = ncurses
 TN5250_LICENSE = LGPL-2.1+
 TN5250_LICENSE_FILES = COPYING
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 TN5250_CONF_OPTS += --with-ssl-dir=$(STAGING_DIR)/usr
 TN5250_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
-TN5250_DEPENDENCIES += openssl host-pkgconf
+TN5250_DEPENDENCIES += libssl host-pkgconf
 else
 TN5250_CONF_OPTS += --without-ssl
 endif
package/tor/Config.in +1 -1
index 52009267e..ba1c8d675 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_TOR
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_LIBEVENT
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  Tor is free software and an open network that helps you
package/tor/tor.mk +1 -1
index 0fa17e664..cbe5ecfd3 100644
@@ -8,7 +8,7 @@ TOR_VERSION = 0.3.0.9
 TOR_SITE = https://dist.torproject.org
 TOR_LICENSE = BSD-3-Clause
 TOR_LICENSE_FILES = LICENSE
-TOR_DEPENDENCIES = libevent openssl zlib
+TOR_DEPENDENCIES = libevent libssl zlib
 TOR_AUTORECONF = YES
 
 TOR_CONF_OPTS = \
package/tpm-tools/Config.in +1 -1
index e11568728..4d7947dbc 100644
@@ -4,7 +4,7 @@ config BR2_PACKAGE_TPM_TOOLS
 	depends on !BR2_STATIC_LIBS # trousers
 	depends on !BR2_arc # trousers
 	select BR2_PACKAGE_TROUSERS
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Tools to manage and diagnose a TPM
 
package/tpm-tools/tpm-tools.mk +1 -1
index 4dbf50a29..3542c92b7 100644
@@ -9,7 +9,7 @@ TPM_TOOLS_SITE = http://downloads.sourceforge.net/project/trousers/tpm-tools/$(T
 TPM_TOOLS_STRIP_COMPONENTS = 2
 TPM_TOOLS_LICENSE = Common Public License Version 1.0
 TPM_TOOLS_LICENSE_FILES = LICENSE
-TPM_TOOLS_DEPENDENCIES = trousers openssl $(TARGET_NLS_DEPENDENCIES)
+TPM_TOOLS_DEPENDENCIES = trousers libssl $(TARGET_NLS_DEPENDENCIES)
 # configure.in and lib/Makefile.am is patched
 TPM_TOOLS_AUTORECONF = YES
 TPM_TOOLS_GETTEXTIZE = YES
package/transmission/Config.in +1 -1
index b47c36fdd..6edcaf400 100644
@@ -3,7 +3,7 @@ config BR2_PACKAGE_TRANSMISSION
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_ZLIB
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBEVENT
 	help
package/transmission/transmission.mk +1 -1
index f8abb2b8b..10adfdc5f 100644
@@ -12,7 +12,7 @@ TRANSMISSION_DEPENDENCIES = \
 	host-intltool \
 	libcurl \
 	libevent \
-	openssl \
+	libssl \
 	zlib
 TRANSMISSION_AUTORECONF = YES
 TRANSMISSION_CONF_OPTS = \
package/trousers/Config.in +1 -1
index eb791d173..eea4d678b 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_TROUSERS
 	depends on !BR2_STATIC_LIBS
 	# ARC toolchain issue
 	depends on !BR2_arc
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	help
 	  The open-source TCG Software Stack (TSS).
package/trousers/trousers.mk +1 -1
index e49c2ac14..a95cb3667 100644
@@ -11,7 +11,7 @@ TROUSERS_LICENSE_FILES = LICENSE
 TROUSERS_INSTALL_STAGING = YES
 # Need autoreconf because of a patch touching configure.in and Makefile.am
 TROUSERS_AUTORECONF = YES
-TROUSERS_DEPENDENCIES = host-pkgconf openssl
+TROUSERS_DEPENDENCIES = host-pkgconf libssl
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
 TROUSERS_DEPENDENCIES += libiconv
package/turbolua/turbolua.mk +2 -2
index 49877fab6..6c9f5a110 100644
@@ -14,9 +14,9 @@ TURBOLUA_MAKE_OPTS = \
 	$(TARGET_CONFIGURE_OPTS) \
 	LUAJIT_VERSION="$(LUAJIT_VERSION)"
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 TURBOLUA_MAKE_OPTS += SSL=openssl
-TURBOLUA_DEPENDENCIES += openssl
+TURBOLUA_DEPENDENCIES += libssl
 else
 TURBOLUA_MAKE_OPTS += SSL=none
 endif
package/tvheadend/Config.in +1 -1
index fc39d6f48..5b14fecfb 100644
@@ -15,7 +15,7 @@ config BR2_PACKAGE_TVHEADEND
 	select BR2_PACKAGE_LIBVPX if BR2_PACKAGE_FFMPEG && !BR2_bfin # libvpx
 	select BR2_PACKAGE_X264 if BR2_PACKAGE_FFMPEG
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Tvheadend is a TV streaming server for Linux supporting DVB-S,
 	  DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as
package/uboot-tools/Config.in +1 -1
index f55614bac..33b52d3ad 100644
@@ -28,7 +28,7 @@ if BR2_PACKAGE_UBOOT_TOOLS_FIT_SUPPORT
 
 config BR2_PACKAGE_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT
 	bool "FIT signature verification support"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Enables support for FIT Signature Verification.
 
package/uboot-tools/uboot-tools.mk +2 -2
index 4f39f4ad2..f5c32e30c 100644
@@ -28,7 +28,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT),y)
 UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT_SIGNATURE=y
-UBOOT_TOOLS_DEPENDENCIES += openssl host-pkgconf
+UBOOT_TOOLS_DEPENDENCIES += libssl host-pkgconf
 endif
 
 define UBOOT_TOOLS_BUILD_CMDS
@@ -91,7 +91,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SIGNATURE_SUPPORT),y)
 HOST_UBOOT_TOOLS_MAKE_OPTS += CONFIG_FIT_SIGNATURE=y
-HOST_UBOOT_TOOLS_DEPENDENCIES += host-openssl
+HOST_UBOOT_TOOLS_DEPENDENCIES += host-libssl
 endif
 
 define HOST_UBOOT_TOOLS_BUILD_CMDS
package/ustream-ssl/Config.in +1 -1
index 540e43689..64cf1d319 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_USTREAM_SSL
 	bool "ustream-ssl"
 	depends on !BR2_STATIC_LIBS #libubox
 	select BR2_PACKAGE_LIBUBOX
-	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
+	select BR2_PACKAGE_LIBSSL if !BR2_PACKAGE_MBEDTLS
 	help
 	  ustream SSL wrapper
 
package/ustream-ssl/ustream-ssl.mk +1 -1
index 9b1078829..e6272b0d0 100644
@@ -15,7 +15,7 @@ ifeq ($(BR2_PACKAGE_MBEDTLS),y)
 USTREAM_SSL_DEPENDENCIES += mbedtls
 USTREAM_SSL_CONF_OPTS += -DMBEDTLS=ON
 else
-USTREAM_SSL_DEPENDENCIES += openssl
+USTREAM_SSL_DEPENDENCIES += libssl
 endif
 
 $(eval $(cmake-package))
package/vboot-utils/vboot-utils.mk +1 -1
index a6a67ad31..3ece38595 100644
@@ -10,7 +10,7 @@ VBOOT_UTILS_SITE_METHOD = git
 VBOOT_UTILS_LICENSE = BSD-3-Clause
 VBOOT_UTILS_LICENSE_FILES = LICENSE
 
-HOST_VBOOT_UTILS_DEPENDENCIES = host-openssl host-util-linux host-pkgconf
+HOST_VBOOT_UTILS_DEPENDENCIES = host-libssl host-util-linux host-pkgconf
 
 # vboot_reference contains code that goes into bootloaders,
 # utilities intended for the target system, and a bunch of scripts
package/vsftpd/vsftpd.mk +2 -2
index 2f86d91ba..bb7cb8198 100644
@@ -22,8 +22,8 @@ ifeq ($(BR2_PACKAGE_VSFTPD_UTMPX),)
 VSFTPD_POST_CONFIGURE_HOOKS += VSFTPD_DISABLE_UTMPX
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-VSFTPD_DEPENDENCIES += openssl host-pkgconf
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+VSFTPD_DEPENDENCIES += libssl host-pkgconf
 VSFTPD_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libssl libcrypto`
 VSFTPD_POST_CONFIGURE_HOOKS += VSFTPD_ENABLE_SSL
 endif
package/vtun/Config.in +1 -1
index bb8919c3d..319518cae 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_VTUN
 	bool "vtun"
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LZO
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_ZLIB
 	help
 	  Tool for easily creating Virtual Tunnels over TCP/IP networks
package/vtun/vtun.mk +1 -1
index 9c46559fb..b1d65c24b 100644
@@ -8,7 +8,7 @@ VTUN_VERSION = 3.0.3
 VTUN_SITE = http://downloads.sourceforge.net/project/vtun/vtun/$(VTUN_VERSION)
 VTUN_LICENSE = GPL-2.0+ with OpenSSL exception
 VTUN_LICENSE_FILES = README.OpenSSL
-VTUN_DEPENDENCIES = host-bison host-flex zlib lzo openssl
+VTUN_DEPENDENCIES = host-bison host-flex zlib lzo libssl
 VTUN_AUTORECONF = YES
 
 VTUN_CONF_OPTS = \
package/wget/wget.mk +2 -2
index 4cb48dce6..b20a040a4 100644
@@ -19,9 +19,9 @@ endif
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 WGET_CONF_OPTS += --with-ssl=gnutls
 WGET_DEPENDENCIES += gnutls
-else ifeq ($(BR2_PACKAGE_OPENSSL),y)
+else ifeq ($(BR2_PACKAGE_LIBSSL),y)
 WGET_CONF_OPTS += --with-ssl=openssl
-WGET_DEPENDENCIES += openssl
+WGET_DEPENDENCIES += libssl
 else
 WGET_CONF_OPTS += --without-ssl
 endif
package/wpa_supplicant/wpa_supplicant.mk +3 -3
index 2e8b82ceb..0db8c2228 100644
@@ -88,9 +88,9 @@ ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPS),y)
 WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_WPS
 endif
 
-# Try to use openssl if it's already available
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-WPA_SUPPLICANT_DEPENDENCIES += openssl
+# Try to use libssl if it's already available
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+WPA_SUPPLICANT_DEPENDENCIES += libssl
 WPA_SUPPLICANT_LIBS += $(if $(BR2_STATIC_LIBS),-lcrypto -lz)
 WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/'
 else
package/x11r7/xserver_xorg-server/Config.in +1 -1
index 5971e13f5..a05156d1d 100644
@@ -9,7 +9,7 @@ config BR2_PACKAGE_XSERVER_XORG_SERVER
 	# We need a SHA1 implementation. If either openssl or
 	# libgcrypt are already part of the build, we'll use one of
 	# them, otherwise, use the small libsha1 library.
-	select BR2_PACKAGE_LIBSHA1 if (!BR2_PACKAGE_OPENSSL && !BR2_PACKAGE_LIBGCRYPT)
+	select BR2_PACKAGE_LIBSHA1 if (!BR2_PACKAGE_LIBSSL && !BR2_PACKAGE_LIBGCRYPT)
 	select BR2_PACKAGE_MCOOKIE
 	select BR2_PACKAGE_PIXMAN
 	select BR2_PACKAGE_XFONT_FONT_ALIAS if !BR2_PACKAGE_XSERVER_XORG_SERVER_BUILTIN_FONTS
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk +2 -2
index 12c3ed06c..38c9e1370 100644
@@ -247,9 +247,9 @@ ifneq ($(BR2_PACKAGE_XLIB_LIBDMX),y)
 XSERVER_XORG_SERVER_CONF_OPTS += --disable-dmx
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
 XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libcrypto
-XSERVER_XORG_SERVER_DEPENDENCIES += openssl
+XSERVER_XORG_SERVER_DEPENDENCIES += libssl
 else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
 XSERVER_XORG_SERVER_CONF_OPTS += --with-sha1=libgcrypt
 XSERVER_XORG_SERVER_DEPENDENCIES += libgcrypt
package/x11vnc/x11vnc.mk +2 -2
index f1f4da21b..d747e5bb1 100644
@@ -28,8 +28,8 @@ else
 X11VNC_CONF_OPTS += --without-jpeg
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-X11VNC_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+X11VNC_DEPENDENCIES += libssl
 else
 X11VNC_CONF_OPTS += --without-ssl --without-crypto
 endif
package/xen/Config.in +1 -1
index b5dcbf259..501721baf 100644
@@ -27,7 +27,7 @@ config BR2_PACKAGE_XEN_TOOLS
 	select BR2_PACKAGE_LIBAIO
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	select BR2_PACKAGE_PIXMAN
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
package/xen/xen.mk +1 -1
index 90e73853d..ad2567aa9 100644
@@ -37,7 +37,7 @@ XEN_CONF_OPTS += --disable-xen
 endif
 
 ifeq ($(BR2_PACKAGE_XEN_TOOLS),y)
-XEN_DEPENDENCIES += dtc libaio libglib2 ncurses openssl pixman util-linux yajl
+XEN_DEPENDENCIES += dtc libaio libglib2 ncurses libssl pixman util-linux yajl
 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
 XEN_DEPENDENCIES += argp-standalone
 endif
package/xl2tp/Config.in +1 -1
index f0b1e834a..4650d0955 100644
@@ -2,7 +2,7 @@ config BR2_PACKAGE_XL2TP
 	bool "xl2tp"
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBPCAP
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBSSL
 	help
 	  Layer 2 Tunnelling Protocol (RFC2661).
 
package/xl2tp/xl2tp.mk +1 -1
index 7f4ffd410..3b31df319 100644
@@ -6,7 +6,7 @@
 
 XL2TP_VERSION = v1.3.8
 XL2TP_SITE = $(call github,xelerance,xl2tpd,$(XL2TP_VERSION))
-XL2TP_DEPENDENCIES = libpcap openssl
+XL2TP_DEPENDENCIES = libpcap libssl
 XL2TP_LICENSE = GPL-2.0
 XL2TP_LICENSE_FILES = LICENSE
 
package/znc/znc.mk +2 -2
index 5783200ef..27a7a8867 100644
@@ -18,8 +18,8 @@ else
 ZNC_CONF_OPTS += --disable-charset
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-ZNC_DEPENDENCIES += openssl
+ifeq ($(BR2_PACKAGE_LIBSSL),y)
+ZNC_DEPENDENCIES += libssl
 ZNC_CONF_OPTS += --enable-openssl
 else
 ZNC_CONF_OPTS += --disable-openssl
Signature · 1 line
2.13.3
#7 lore raw

PATCH 3/10 convert dependencies to libssl

Hi Adam,

Am Fri, 04 Aug 2017 14:55:14 -0400 schrieb Adam Duskett:

Quoted 5 lines

Convert the remaining packages that select or depend on OpenSSL and OpenSSL-host to instead select or depend on libssl or libssl-host.

 package/kodi/Config.in                                         |  2 +-
 package/kodi/kodi.mk                                           |  2 +-

NAK for Kodi, LibreELEC switches back to OpenSSL: https://github.com/
LibreELEC/LibreELEC.tv/pull/1312#issuecomment-279255179

Regards, Bernd

#8 lore raw

PATCH 4/10 perl-net-ssleay: update to version 1.81

In reply to Adam Duskett

This version is compatible with LibreSSL.

---
 package/perl-net-ssleay/perl-net-ssleay.hash | 4 ++--
 package/perl-net-ssleay/perl-net-ssleay.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/perl-net-ssleay/perl-net-ssleay.hash +2 -2
index 556aea7d5..08b2aee2e 100644
@@ -1,3 +1,3 @@
 # retrieved by scancpan from http://cpan.metacpan.org/
-md5    a740d7792dbac8ca8c4eb38d3b8fbd01 Net-SSLeay-1.72.tar.gz
-sha256 1baac39f0f12cee515d8bec633175bb5916ca542e5356e26420437bd6195d2f4 Net-SSLeay-1.72.tar.gz
+md5    71932ce34d4db44de8d00399c3405792 Net-SSLeay-1.81.tar.gz
+sha256 00cbb6174e628b42178e1445c9fd5a3c5ae2cfd6a5a43e03610ba14786f21b7d Net-SSLeay-1.81.tar.gz
package/perl-net-ssleay/perl-net-ssleay.mk +1 -1
index 575ab7f38..1694e3905 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PERL_NET_SSLEAY_VERSION = 1.72
+PERL_NET_SSLEAY_VERSION = 1.81
 PERL_NET_SSLEAY_SOURCE = Net-SSLeay-$(PERL_NET_SSLEAY_VERSION).tar.gz
 PERL_NET_SSLEAY_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MI/MIKEM
 PERL_NET_SSLEAY_DEPENDENCIES = libssl
Signature · 1 line
2.13.3
#9 lore raw

PATCH 4/10 perl-net-ssleay: update to version 1.81

Quoted 1 line · Adam Duskett

This version is compatible with LibreSSL.

Did you check if perl-io-socket-ssl still works?

Regards,
Arnout

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#10 lore raw

PATCH 5/10 netatalk: bump to version 3.1.9

In reply to Adam Duskett

This version is compatible with LibreSSL.

---
 package/netatalk/netatalk.hash | 6 +++---
 package/netatalk/netatalk.mk   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
package/netatalk/netatalk.hash +3 -3
index 955ffd401..1b974f5b6 100644
@@ -1,3 +1,3 @@
-# From http://sourceforge.net/projects/netatalk/files/netatalk/3.1.8/
-md5	9cab934ca32b8979f389da52d44c69c2	netatalk-3.1.8.tar.bz2
-sha1	00518461a311e6c17c95738ac214c8f06f863b4b	netatalk-3.1.8.tar.bz2
+# From http://sourceforge.net/projects/netatalk/files/netatalk/3.1.9/
+md5	d1d385ae6c3dc45eef4c923472f8fa5f	netatalk-3.1.9.tar.bz2
+sha1	ac746efc00e8cfbe5042a7835b27480bb83505cd	netatalk-3.1.9.tar.bz2
package/netatalk/netatalk.mk +1 -1
index 5742eafd0..8baf6e5f4 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-NETATALK_VERSION = 3.1.8
+NETATALK_VERSION = 3.1.9
 NETATALK_SITE = http://downloads.sourceforge.net/project/netatalk/netatalk/$(NETATALK_VERSION)
 NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
 # For 0001-Fix-setting-of-LD_LIBRARY_FLAGS-shlibpath_var.patch
Signature · 1 line
2.13.3
#11 lore raw

PATCH 5/10 netatalk: bump to version 3.1.9

Quoted 3 lines · Adam Duskett

This version is compatible with LibreSSL.

Applied to next, thanks.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#12 lore raw

PATCH 6/10 freerdp: bump to version 9a00b25adc6604f4fbe7c1d69aa4e5663d4d3863

In reply to Adam Duskett

This version is compatible with LibreSSL.
All of the patches previously in the package directory are now also either submitted upstream or not relevant anymore.

---
 .../freerdp/0001-fix-building-shared-libs.patch    | 26 --------
 .../freerdp/0002-add-support-for-tz-package.patch  | 30 ---------
 package/freerdp/0003-add-missing-define.patch      | 44 -------------
 package/freerdp/0004-ffmpeg30.patch                | 74 ----------------------
 package/freerdp/freerdp.hash                       |  2 +-
 package/freerdp/freerdp.mk                         |  2 +-
 6 files changed, 2 insertions(+), 176 deletions(-)
 delete mode 100644 package/freerdp/0001-fix-building-shared-libs.patch
 delete mode 100644 package/freerdp/0002-add-support-for-tz-package.patch
 delete mode 100644 package/freerdp/0003-add-missing-define.patch
 delete mode 100644 package/freerdp/0004-ffmpeg30.patch
package/freerdp/0001-fix-building-shared-libs.patch deleted +0 -26
deleted file mode 100644
index 8922cb15b..000000000
@@ -1,26 +0,0 @@
-winpr/tools: fix building shared libs
-
-libwinpr-makecert-tool.a is used to build libxfreerdp-server.so, so even
-if we are building a static libwinpr-makecert-tool.a library, we need to
-build it with -fPIC.
-
-Patch and commit log suggested by Samuel MARTIN.
-
-Signed-off-by: "Yann E. MORIN" <[email protected]>
-Cc: Samuel Martin <[email protected]>
-
-diff -durN freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt
---- freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt	2014-08-25 06:52:43.000000000 -0700
-+++ freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt	2014-10-24 15:39:39.600319523 -0700
-@@ -37,4 +37,11 @@
- add_subdirectory(cli)
- 
- set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools")
-+
-+if(BUILD_SHARED_LIBS)
-+	# build libwinpr-makecert-tool.a with PIC because it is used to build
-+	# the shared library libxfreerdp-server.so.
-+	set_property(TARGET ${MODULE_NAME} PROPERTY POSITION_INDEPENDENT_CODE TRUE)
-+endif()
-+
- export_complex_library(LIBNAME ${MODULE_NAME})
package/freerdp/0002-add-support-for-tz-package.patch deleted +0 -30
deleted file mode 100644
index 93e4afde1..000000000
@@ -1,30 +0,0 @@
-From 605d0a85183d2f9d5b0da5629cbadf01173bbb2f Mon Sep 17 00:00:00 2001
-From: Scott Fan <[email protected]>
-Date: Mon, 13 Jul 2015 15:01:17 +0800
-Subject: [PATCH] Add support for tz package
-
-Fixes error message while freerdp connected the remote desktop:
-Unable to detect time zone
-
-Signed-off-by: Scott Fan <[email protected]>
----
- libfreerdp/locale/timezone.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libfreerdp/locale/timezone.c b/libfreerdp/locale/timezone.c
-index 3070f1f..4a06786 100644
---- a/libfreerdp/locale/timezone.c
-+++ b/libfreerdp/locale/timezone.c
-@@ -1539,7 +1539,8 @@ char* freerdp_get_unix_timezone_identifier()
- 	 * America/Montreal for example.
- 	 */
- 	
--	if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1)
-+	if ((len = readlink("/etc/localtime", buf, sizeof(buf) - 1)) != -1 ||
-+	    (len = readlink("/etc/TZ", buf, sizeof(buf) - 1)) != -1)
- 	{
- 		int num = 0;
- 		int pos = len;
--- 
-2.4.5
-
package/freerdp/0003-add-missing-define.patch deleted +0 -44

44 lines not on this page · raw message

package/freerdp/0004-ffmpeg30.patch deleted +0 -74

74 lines not on this page · raw message

package/freerdp/freerdp.hash +1 -1
index 2ced373b3..793f56e1c 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 1db496cca391f76382ef284db2d0306d5c15bf515ee2c964319c22272d969a32  freerdp-17834af7bb378f85a3b3cc4dcadaa5125a337e16.tar.gz
+sha256 60df5f7ee5b976534eb7530a6913c36665c8637c3094ddb9c53a180ac49208f6  freerdp-9a00b25adc6604f4fbe7c1d69aa4e5663d4d3863.tar.gz
package/freerdp/freerdp.mk +1 -1
index ad43ef3f4..a763d3c78 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 # Changeset on the master branch
-FREERDP_VERSION = 17834af7bb378f85a3b3cc4dcadaa5125a337e16
+FREERDP_VERSION = 9a00b25adc6604f4fbe7c1d69aa4e5663d4d3863
 FREERDP_SITE = $(call github,FreeRDP,FreeRDP,$(FREERDP_VERSION))
 FREERDP_DEPENDENCIES = libglib2 libssl zlib
 FREERDP_LICENSE = Apache-2.0
Signature · 1 line
2.13.3
#13 lore raw

PATCH 6/10 freerdp: bump to version 9a00b25adc6604f4fbe7c1d69aa4e5663d4d3863

Quoted 3 lines · Adam Duskett

This version is compatible with LibreSSL.
All of the patches previously in the package directory are now also either submitted upstream or not relevant anymore.

Please specify for each patch:
- if it was just a backported upstream patch; or
- if it was accepted upstream (and if it has changed, explain the differences); or
- if upstream has solved it differently; or
- if no longer relevant, why not.

Also, upstream seems to be making releases again, so perhaps switch to the
2.0.0-rc0 tag instead?

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#14 lore raw

PATCH 7/10 softether: bump to version 471de39ddf91be0a6a020a68fd6c4c20ef5ba702cb8b5da12ae8350493819ed8

In reply to Adam Duskett

While this version isn't 100% compatible with LibreSSL, it makes it much easier to apply a small patch that makes it compatible.

---
 package/softether/softether.hash | 2 +-
 package/softether/softether.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/softether/softether.hash +1 -1
index 961990baf..2f77df1db 100644
@@ -1,2 +1,2 @@
 # Locally computed
-sha256 4bdcc05fcd163eea735444283264e40b86626d24fddf110aa416f2c8cb82448b softether-1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a.tar.gz
+sha256 471de39ddf91be0a6a020a68fd6c4c20ef5ba702cb8b5da12ae8350493819ed8 softether-e9006faf0c8739147ab97e27fe11c5cdd20ed9e6.tar.gz
package/softether/softether.mk +1 -1
index 33d20c40b..31504cfb1 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SOFTETHER_VERSION = 1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a
+SOFTETHER_VERSION = e9006faf0c8739147ab97e27fe11c5cdd20ed9e6
 SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION))
 SOFTETHER_LICENSE = GPL-2.0
 SOFTETHER_LICENSE_FILES = LICENSE
Signature · 1 line
2.13.3
#15 lore raw

PATCH 7/10 softether: bump to version 471de39ddf91be0a6a020a68fd6c4c20ef5ba702cb8b5da12ae8350493819ed8

Quoted 22 lines · Adam Duskett

While this version isn't 100% compatible with LibreSSL, it makes it much easier to apply a small patch that makes it compatible.

---
 package/softether/softether.hash | 2 +-
 package/softether/softether.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/softether/softether.hash +1 -1
index 961990baf..2f77df1db 100644
@@ -1,2 +1,2 @@
 # Locally computed
-sha256 4bdcc05fcd163eea735444283264e40b86626d24fddf110aa416f2c8cb82448b softether-1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a.tar.gz
+sha256 471de39ddf91be0a6a020a68fd6c4c20ef5ba702cb8b5da12ae8350493819ed8 softether-e9006faf0c8739147ab97e27fe11c5cdd20ed9e6.tar.gz
package/softether/softether.mk +0 -0
index 33d20c40b..31504cfb1 100644

package/softether/softether.mk line 7

Quoted 5 lines
package/softether/softether.mk +1 -1
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SOFTETHER_VERSION = 1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a
+SOFTETHER_VERSION = e9006faf0c8739147ab97e27fe11c5cdd20ed9e6

Perhaps use the v4.22-9634-beta tag instead? It feels more like something
upstream considers releasable. Note that the previous version 1e17c9 was v4.21-9613-beta (but they didn't actually tag that).

Regards,
Arnout

Quoted 4 lines
package/softether/softether.mk +0 -0
 SOFTETHER_SITE = $(call github,SoftEtherVPN,SoftEtherVPN,$(SOFTETHER_VERSION))
 SOFTETHER_LICENSE = GPL-2.0
 SOFTETHER_LICENSE_FILES = LICENSE
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#16 lore raw

PATCH 8/10 libssl: fix make files for libressl

In reply to Adam Duskett

Two packages need a slight change to get them to build with libressl.

ca-certificates uses the c_rehash script from openssl to create symlinks to the certificates by their hash value. LibreSSL moved this functionality into the openssl binary itself.

mosquitto has tls_psk enabled by default, which libressl does not support. This is fixed with passing WITH_TLS_PSK=no to the make opts.

---
 package/ca-certificates/ca-certificates.mk | 14 +++++++++++++-
 package/mosquitto/mosquitto.mk             |  3 +++
 2 files changed, 16 insertions(+), 1 deletion(-)
package/ca-certificates/ca-certificates.mk +13 -1
index 7221afb00..384c1ecf5 100644
@@ -19,6 +19,18 @@ define CA_CERTIFICATES_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
 endef
 
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+define CA_CERTIFICATES_CREATE_SYMLINKS
+	$(HOST_DIR)/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs
+endef
+endif
+
+ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+define CA_CERTIFICATES_CREATE_SYMLINKS
+	$(HOST_DIR)/bin/openssl certhash $(TARGET_DIR)/etc/ssl/certs
+endef
+endif
+
 define CA_CERTIFICATES_INSTALL_TARGET_CMDS
 	$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/ca-certificates
 	$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/ssl/certs
@@ -37,7 +49,7 @@ define CA_CERTIFICATES_INSTALL_TARGET_CMDS
 	done
 
 	# Create symlinks to the certificates by their hash values
-	$(HOST_DIR)/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs
+	$(CA_CERTIFICATES_CREATE_SYMLINKS)
 endef
 
 $(eval $(generic-package))
package/mosquitto/mosquitto.mk +3 -0
index 29e252161..05052c7c3 100644
@@ -33,6 +33,9 @@ endif
 ifeq ($(BR2_PACKAGE_LIBSSL),y)
 MOSQUITTO_DEPENDENCIES += libssl
 MOSQUITTO_MAKE_OPTS += WITH_TLS=yes
+ifeq ($(BR2_PACKAGE_LIBRESSL),y)
+MOSQUITTO_MAKE_OPTS += WITH_TLS_PSK=no
+endif
 else
 MOSQUITTO_MAKE_OPTS += WITH_TLS=no
 endif
Signature · 1 line
2.13.3
#17 lore raw

PATCH 8/10 libssl: fix make files for libressl

Quoted 5 lines · Adam Duskett

Two packages need a slight change to get them to build with libressl.

ca-certificates uses the c_rehash script from openssl to create symlinks to the certificates by their hash value. LibreSSL moved this functionality into the openssl binary itself.

I may be confused by the patches in flight (though apparently you've removed
everything pending from patchwork), but as far as I understand, we always use host-openssl and never host-libressl, so this isn't relevant, right?

Quoted 2 lines

mosquitto has tls_psk enabled by default, which libressl does not support. This is fixed with passing WITH_TLS_PSK=no to the make opts.

For consistency we should probably also have WITH_TLS_PSK=yes in the other case.

Regards,
Arnout

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#18 lore raw

PATCH 9/10 add fix-libressl-support patches

In reply to Adam Duskett

There are 12 total packages need small patches to fix libressl support. These patches are non-intrusive and will work with OpenSSL as well as LibreSSL.

---
 package/apache/0003-fix-libressl-support.patch     | 277 +++++++++++++++++++++
 package/ffmpeg/0002-fix-libressl-support.patch     |  74 ++++++
 .../heirloom-mailx/0002-fix-libressl-support.patch |  54 ++++
 package/hostapd/0001-fix-libressl-support.patch    |  38 +++
 package/lftp/0003-libressl-support.patch           |  35 +++
 package/libevent/0002-fix-libressl-support.patch   |  26 ++
 package/mosquitto/0001-fix-libressl-support.patch  |  63 +++++
 package/ntp/0004-libressl-support.patch            | 106 ++++++++
 package/openldap/0004-fix-libressl-support.patch   |  99 ++++++++
 package/opusfile/0001-fix-libressl-support.patch   |  82 ++++++
 package/softether/0010-fix-libressl-support.patch  |  33 +++
 .../wpa_supplicant/0001-fix-libressl-support.patch |  70 ++++++
 12 files changed, 957 insertions(+)
 create mode 100644 package/apache/0003-fix-libressl-support.patch
 create mode 100644 package/ffmpeg/0002-fix-libressl-support.patch
 create mode 100644 package/heirloom-mailx/0002-fix-libressl-support.patch
 create mode 100644 package/hostapd/0001-fix-libressl-support.patch
 create mode 100644 package/lftp/0003-libressl-support.patch
 create mode 100644 package/libevent/0002-fix-libressl-support.patch
 create mode 100644 package/mosquitto/0001-fix-libressl-support.patch
 create mode 100644 package/ntp/0004-libressl-support.patch
 create mode 100644 package/openldap/0004-fix-libressl-support.patch
 create mode 100644 package/opusfile/0001-fix-libressl-support.patch
 create mode 100644 package/softether/0010-fix-libressl-support.patch
 create mode 100644 package/wpa_supplicant/0001-fix-libressl-support.patch
package/apache/0003-fix-libressl-support.patch new file +277 -0
new file mode 100644
index 000000000..d3b19310d
@@ -0,0 +1,277 @@
+From 0685acdcc42c198e3493313dfe979ce80082139c Mon Sep 17 00:00:00 2001
+From: Bernard Spil 
+Date: Fri, 4 Aug 2017 13:12:19 -0400
+Subject: [PATCH] fix libressl support
+
+From: https://bz.apache.org/bugzilla/attachment.cgi?id=35070
+
+Original Author: Bernard Spil
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ modules/ssl/mod_ssl.c           |  8 ++++----
+ modules/ssl/ssl_engine_init.c   | 10 +++++-----
+ modules/ssl/ssl_engine_io.c     |  8 ++++----
+ modules/ssl/ssl_engine_kernel.c |  2 +-
+ modules/ssl/ssl_engine_vars.c   |  2 +-
+ modules/ssl/ssl_private.h       | 18 ++++++++++++++----
+ modules/ssl/ssl_util.c          |  2 +-
+ modules/ssl/ssl_util_ssl.h      |  2 +-
+ support/ab.c                    |  8 ++++++++
+ 9 files changed, 39 insertions(+), 21 deletions(-)
+
+diff --git a/modules/ssl/mod_ssl.c b/modules/ssl/mod_ssl.c
+index 131ec7e..c7bf32b 100644
+--- a/modules/ssl/mod_ssl.c
++++ b/modules/ssl/mod_ssl.c
+@@ -337,12 +337,12 @@ static apr_status_t ssl_cleanup_pre_config(void *data)
+ #if HAVE_ENGINE_LOAD_BUILTIN_ENGINES
+     ENGINE_cleanup();
+ #endif
+-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_COMP)
+     SSL_COMP_free_compression_methods();
+ #endif
+ 
+     /* Usually needed per thread, but this parent process is single-threaded */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #if OPENSSL_VERSION_NUMBER >= 0x1000000fL
+     ERR_remove_thread_state(NULL);
+ #else
+@@ -383,14 +383,14 @@ static int ssl_hook_pre_config(apr_pool_t *pconf,
+     /* Some OpenSSL internals are allocated per-thread, make sure they
+      * are associated to the/our same thread-id until cleaned up.
+      */
+-#if APR_HAS_THREADS && OPENSSL_VERSION_NUMBER < 0x10100000L
++#if APR_HAS_THREADS && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+     ssl_util_thread_id_setup(pconf);
+ #endif
+ 
+     /* We must register the library in full, to ensure our configuration
+      * code can successfully test the SSL environment.
+      */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+     CRYPTO_malloc_init();
+ #else
+     OPENSSL_malloc_init();
+diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c
+index 3e11d56..630de3a 100644
+--- a/modules/ssl/ssl_engine_init.c
++++ b/modules/ssl/ssl_engine_init.c
+@@ -47,7 +47,7 @@ APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ssl, SSL, int, init_server,
+ #define KEYTYPES "RSA or DSA"
+ #endif
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ /* OpenSSL Pre-1.1.0 compatibility */
+ /* Taken from OpenSSL 1.1.0 snapshot 20160410 */
+ static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
+@@ -257,7 +257,7 @@ apr_status_t ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
+ #endif
+     }
+ 
+-#if APR_HAS_THREADS && OPENSSL_VERSION_NUMBER < 0x10100000L
++#if APR_HAS_THREADS && ( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) )
+     ssl_util_thread_setup(p);
+ #endif
+ 
+@@ -380,7 +380,7 @@ apr_status_t ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
+     modssl_init_app_data2_idx(); /* for modssl_get_app_data2()@request time */
+ 
+     init_dh_params();
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+     init_bio_methods();
+ #endif
+ 
+@@ -1301,7 +1301,7 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
+      * or configure NIST P-256 (required to enable ECDHE for earlier versions)
+      * ECDH is always enabled in 1.1.0 unless excluded from SSLCipherList
+      */
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+     else {
+ #if defined(SSL_CTX_set_ecdh_auto)
+         SSL_CTX_set_ecdh_auto(mctx->ssl_ctx, 1);
+@@ -2011,7 +2011,7 @@ apr_status_t ssl_init_ModuleKill(void *data)
+ 
+     }
+ 
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+     free_bio_methods();
+ #endif
+     free_dh_params();
+diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c
+index d1f44e9..0a3b43c 100644
+--- a/modules/ssl/ssl_engine_io.c
++++ b/modules/ssl/ssl_engine_io.c
+@@ -164,7 +164,7 @@ static int bio_filter_create(BIO *bio)
+ {
+     BIO_set_shutdown(bio, 1);
+     BIO_set_init(bio, 1);
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+     /* No setter method for OpenSSL 1.1.0 available,
+      * but I can't find any functional use of the
+      * "num" field there either.
+@@ -549,7 +549,7 @@ static long bio_filter_in_ctrl(BIO *bio, int cmd, long num, void *ptr)
+     return -1;
+ }
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+         
+ static BIO_METHOD bio_filter_out_method = {
+     BIO_TYPE_MEM,
+@@ -2024,7 +2024,7 @@ static void ssl_io_input_add_filter(ssl_filter_ctx_t *filter_ctx, conn_rec *c,
+ 
+     filter_ctx->pInputFilter = ap_add_input_filter(ssl_io_filter, inctx, r, c);
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+     filter_ctx->pbioRead = BIO_new(&bio_filter_in_method);
+ #else
+     filter_ctx->pbioRead = BIO_new(bio_filter_in_method);
+@@ -2059,7 +2059,7 @@ void ssl_io_filter_init(conn_rec *c, request_rec *r, SSL *ssl)
+     filter_ctx->pOutputFilter   = ap_add_output_filter(ssl_io_filter,
+                                                        filter_ctx, r, c);
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+     filter_ctx->pbioWrite       = BIO_new(&bio_filter_out_method);
+ #else
+     filter_ctx->pbioWrite       = BIO_new(bio_filter_out_method);
+diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
+index e8484ed..b29c35a 100644
+--- a/modules/ssl/ssl_engine_kernel.c
++++ b/modules/ssl/ssl_engine_kernel.c
+@@ -1733,7 +1733,7 @@ static void modssl_proxy_info_log(conn_rec *c,
+  * so we need to increment here to prevent them from
+  * being freed.
+  */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define modssl_set_cert_info(info, cert, pkey) \
+     *cert = info->x509; \
+     CRYPTO_add(&(*cert)->references, +1, CRYPTO_LOCK_X509); \
+diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c
+index 04b0879..b9064b3 100644
+--- a/modules/ssl/ssl_engine_vars.c
++++ b/modules/ssl/ssl_engine_vars.c
+@@ -529,7 +529,7 @@ static char *ssl_var_lookup_ssl_cert(apr_pool_t *p, request_rec *r, X509 *xs,
+         resdup = FALSE;
+     }
+     else if (strcEQ(var, "A_SIG")) {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+         nid = OBJ_obj2nid((ASN1_OBJECT *)(xs->cert_info->signature->algorithm));
+ #else
+         const ASN1_OBJECT *paobj;
+diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h
+index 3e9602c..4a4db52 100644
+--- a/modules/ssl/ssl_private.h
++++ b/modules/ssl/ssl_private.h
+@@ -123,6 +123,16 @@
+ #define MODSSL_SSL_METHOD_CONST
+ #endif
+ 
++#if defined(LIBRESSL_VERSION_NUMBER)
++/* Missing from LibreSSL */
++#define SSL_CTRL_SET_MIN_PROTO_VERSION          123
++#define SSL_CTRL_SET_MAX_PROTO_VERSION          124
++#define SSL_CTX_set_min_proto_version(ctx, version) \
++        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
++#define SSL_CTX_set_max_proto_version(ctx, version) \
++        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)
++#endif
++
+ #if defined(OPENSSL_FIPS)
+ #define HAVE_FIPS
+ #endif
+@@ -136,7 +146,7 @@
+ #endif
+ 
+ /* session id constness */
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define IDCONST
+ #else
+ #define IDCONST const
+@@ -199,7 +209,7 @@
+ 
+ #endif /* !defined(OPENSSL_NO_TLSEXT) && defined(SSL_set_tlsext_host_name) */
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define BN_get_rfc2409_prime_768   get_rfc2409_prime_768
+ #define BN_get_rfc2409_prime_1024  get_rfc2409_prime_1024
+ #define BN_get_rfc3526_prime_1536  get_rfc3526_prime_1536
+@@ -219,7 +229,7 @@ void init_bio_methods(void);
+ void free_bio_methods(void);
+ #endif
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10002000L
++#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define X509_STORE_CTX_get0_store(x) (x->ctx)
+ #endif
+ 
+@@ -934,7 +944,7 @@ char        *ssl_util_readfilter(server_rec *, apr_pool_t *, const char *,
+                                  const char * const *);
+ BOOL         ssl_util_path_check(ssl_pathcheck_t, const char *, apr_pool_t *);
+ #if APR_HAS_THREADS
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ void         ssl_util_thread_setup(apr_pool_t *);
+ #endif
+ void         ssl_util_thread_id_setup(apr_pool_t *);
+diff --git a/modules/ssl/ssl_util.c b/modules/ssl/ssl_util.c
+index 9e4e719..efc9b90 100644
+--- a/modules/ssl/ssl_util.c
++++ b/modules/ssl/ssl_util.c
+@@ -247,7 +247,7 @@ void ssl_asn1_table_unset(apr_hash_t *table,
+ }
+ 
+ #if APR_HAS_THREADS
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ /*
+  * To ensure thread-safetyness in OpenSSL - work in progress
+  */
+diff --git a/modules/ssl/ssl_util_ssl.h b/modules/ssl/ssl_util_ssl.h
+index 4f18f91..6514aaf 100644
+--- a/modules/ssl/ssl_util_ssl.h
++++ b/modules/ssl/ssl_util_ssl.h
+@@ -41,7 +41,7 @@
+ #define MODSSL_LIBRARY_VERSION OPENSSL_VERSION_NUMBER
+ #define MODSSL_LIBRARY_NAME    "OpenSSL"
+ #define MODSSL_LIBRARY_TEXT    OPENSSL_VERSION_TEXT
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ #define MODSSL_LIBRARY_DYNTEXT SSLeay_version(SSLEAY_VERSION)
+ #else
+ #define MODSSL_LIBRARY_DYNTEXT OpenSSL_version(OPENSSL_VERSION)
+diff --git a/support/ab.c b/support/ab.c
+index 8429878..deeb686 100644
+--- a/support/ab.c
++++ b/support/ab.c
+@@ -197,6 +197,14 @@ typedef STACK_OF(X509) X509_STACK_TYPE;
+ #if !defined(OPENSSL_NO_TLSEXT) && defined(SSL_set_tlsext_host_name)
+ #define HAVE_TLSEXT
+ #endif
++#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2060000f
++# define SSL_CTRL_SET_MIN_PROTO_VERSION    123
++# define SSL_CTRL_SET_MAX_PROTO_VERSION 124
++#define SSL_CTX_set_min_proto_version(ctx, version) \
++   SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
++#define SSL_CTX_set_max_proto_version(ctx, version) \
++   SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)
++#endif
+ #endif
+ 
+ #include <math.h>
+-- 
+2.13.3
+
package/ffmpeg/0002-fix-libressl-support.patch new file +74 -0

74 lines not on this page · raw message

package/heirloom-mailx/0002-fix-libressl-support.patch new file +54 -0

54 lines not on this page · raw message

package/hostapd/0001-fix-libressl-support.patch new file +38 -0
new file mode 100644
index 000000000..5e8d7afef
@@ -0,0 +1,38 @@
+From 85c1ae0865c7221af98a60cc678c03c78d443389 Mon Sep 17 00:00:00 2001
+From: Aric Belsito <[email protected]>
+Date: Fri, 4 Aug 2017 13:02:17 -0400
+Subject: [PATCH] fix libressl support
+
+From: https://github.com/gentoo/libressl/blob/master/net-wireless/hostapd/files/hostapd-2.6-libressl.patch
+
+Original Author: Aric Belsito <[email protected]>
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ src/crypto/crypto_openssl.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c
+index 19e0e2b..b3d1b07 100644
+--- a/src/crypto/crypto_openssl.c
++++ b/src/crypto/crypto_openssl.c
+@@ -611,7 +611,7 @@ void crypto_cipher_deinit(struct crypto_cipher *ctx)
+ 
+ void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ 	DH *dh;
+ 	struct wpabuf *pubkey = NULL, *privkey = NULL;
+ 	size_t publen, privlen;
+@@ -712,7 +712,7 @@ err:
+ 
+ void * dh5_init_fixed(const struct wpabuf *priv, const struct wpabuf *publ)
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ 	DH *dh;
+ 
+ 	dh = DH_new();
+-- 
+2.13.3
+
package/lftp/0003-libressl-support.patch new file +35 -0
new file mode 100644
index 000000000..f4083709a
@@ -0,0 +1,35 @@
+From 773a7a03e54731eaa2c6f933891f30b310c1acb5 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Thu, 3 Aug 2017 16:30:59 -0400
+Subject: [PATCH] libressl-support
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ src/lftp_ssl.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lftp_ssl.cc b/src/lftp_ssl.cc
+index 7da28a0..c91308e 100644
+--- a/src/lftp_ssl.cc
++++ b/src/lftp_ssl.cc
+@@ -772,7 +772,7 @@ error:
+ #elif USE_OPENSSL
+ //static int lftp_ssl_passwd_callback(char *buf,int size,int rwflag,void *userdata);
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ // for compatibility with older versions
+ X509_OBJECT *X509_OBJECT_new()
+ {
+@@ -795,7 +795,7 @@ X509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *a)
+ # define X509_CRL_get0_nextUpdate(x) X509_CRL_get_nextUpdate(x)
+ # define ASN1_STRING_get0_data(x) ASN1_STRING_data(x)
+ # define X509_REVOKED_get0_serialNumber(x) (x->serialNumber)
+-#endif // OPENSSL_VERSION_NUMBER < 0x10100000L
++#endif // OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+ 
+ Ref<lftp_ssl_openssl_instance> lftp_ssl_openssl::instance;
+ 
+-- 
+2.13.3
+
package/libevent/0002-fix-libressl-support.patch new file +26 -0
new file mode 100644
index 000000000..88697c422
@@ -0,0 +1,26 @@
+From 10ca825cf8f52b14b6230db7de5e5df307212499 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Wed, 2 Aug 2017 11:38:11 -0400
+Subject: [PATCH 1/1] add libressl support
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ openssl-compat.h                     | 2 +-
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/openssl-compat.h b/openssl-compat.h
+index 69afc71..937fa4d 100644
+--- a/openssl-compat.h
++++ b/openssl-compat.h
+@@ -1,7 +1,7 @@
+ #ifndef OPENSSL_COMPAT_H
+ #define OPENSSL_COMPAT_H
+ 
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
+ 
+ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
+ {
+-- 
+2.13.3
+
package/mosquitto/0001-fix-libressl-support.patch new file +63 -0

63 lines not on this page · raw message

package/ntp/0004-libressl-support.patch new file +106 -0

106 lines not on this page · raw message

package/openldap/0004-fix-libressl-support.patch new file +99 -0

99 lines not on this page · raw message

package/opusfile/0001-fix-libressl-support.patch new file +82 -0

82 lines not on this page · raw message

package/softether/0010-fix-libressl-support.patch new file +33 -0
new file mode 100644
index 000000000..e08858def
@@ -0,0 +1,33 @@
+From f007aee66ed4e975b87bf35a00cea18ef5929d94 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Fri, 4 Aug 2017 07:36:08 -0400
+Subject: [PATCH] fix libressl support
+
+softether uses SSLv3_client_method which LibreSSL does not support.
+Guard the code with #ifndef OPENSSL_NO_SSL3 and return false if tls
+can't be used.
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ src/Mayaqua/Network.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/Mayaqua/Network.c b/src/Mayaqua/Network.c
+index 41d69cc..bb9848f 100644
+--- a/src/Mayaqua/Network.c
++++ b/src/Mayaqua/Network.c
+@@ -13015,7 +13015,11 @@ bool StartSSLEx(SOCK *sock, X *x, K *priv, bool client_tls, UINT ssl_timeout, ch
+ 		{
+ 			if (client_tls == false)
+ 			{
++				#ifndef OPENSSL_NO_SSL3
+ 				SSL_CTX_set_ssl_version(ssl_ctx, SSLv3_method());
++				#else
++				return false;
++				#endif
+ 			}
+ 			else
+ 			{
+-- 
+2.13.3
+
package/wpa_supplicant/0001-fix-libressl-support.patch new file +70 -0

70 lines not on this page · raw message

Signature · 1 line
2.13.3
#19 lore raw

PATCH 10/10 libssl: add libressl as a option

In reply to Adam Duskett
---
 package/libressl/Config.in   | 2 +-
 package/libressl/libressl.mk | 2 ++
 package/libssl/Config.in     | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)
package/libressl/Config.in +1 -1
index 0a1c9e273..a1cbeafde 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBRESSL
 	bool "libressl"
-	depends on !BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_HAS_LIBSSL
 	help
 	  LibreSSL is a version of the TLS/crypto stack forked from
 	  OpenSSL in 2014, with goals of modernizing the codebase,
package/libressl/libressl.mk +2 -0
index ccd236d29..4c993a97a 100644
@@ -9,6 +9,7 @@ LIBRESSL_SITE = https://ftp.openbsd.org/pub/OpenBSD/LibreSSL
 LIBRESSL_LICENSE = ISC (new additions), OpenSSL or SSLeay (original OpenSSL code)
 LIBRESSL_LICENSE_FILES = COPYING
 LIBRESSL_INSTALL_STAGING = YES
+LIBRESSL_PROVIDES = libssl
 
 ifeq ($(BR2_PACKAGE_LIBRESSL_BIN),)
 define LIBRESSL_REMOVE_BIN
@@ -17,4 +18,5 @@ endef
 LIBRESSL_POST_INSTALL_TARGET_HOOKS += LIBRESSL_REMOVE_BIN
 endif
 
+$(eval $(host-autotools-package))
 $(eval $(autotools-package))
package/libssl/Config.in +1 -0
index 5f3d2fc2a..7a1ca68d4 100644
@@ -12,6 +12,7 @@ choice
 	  Select OpenSSL or LibreSSL.
 
 	source "package/openssl/Config.in"
+	source "package/libressl/Config.in"
 
 endchoice
 
Signature · 1 line
2.13.3
#20 lore raw

PATCH 10/10 libssl: add libressl as a option

On 04-08-17 20:55, Adam Duskett wrote:
[snip]

Quoted 5 lines

LIBRESSL_POST_INSTALL_TARGET_HOOKS += LIBRESSL_REMOVE_BIN endif

+$(eval $(host-autotools-package))
$(eval $(autotools-package))

Ah, here is the host package!

This should be a separate patch (the one you had before). There is still one
problem, though: there is nothing stopping both host-openssl and host-libressl to be built. Oh, hang on, that's not true, because you never depend on host-openssl or host-libressl but always on host-libssl. OK, that sounds like a good solution then! Can you extend the commit message with a sentence that explains this?

Note, I've marked the entire series as changes requested in patchwork, except
for the version bumps that can be applied independently.

Regards,
Arnout

Quoted 13 lines
package/libssl/Config.in +1 -0
index 5f3d2fc2a..7a1ca68d4 100644
@@ -12,6 +12,7 @@ choice
 	  Select OpenSSL or LibreSSL.
 
 	source "package/openssl/Config.in"
+	source "package/libressl/Config.in"
 
 endchoice
 
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#21 lore raw

cover libssl: new package

In reply to Adam Duskett

Am Fri, 04 Aug 2017 14:55:11 -0400 schrieb Adam Duskett:

Quoted 3 lines

After spending over 20 hours building, testing, and compiling all of the packages currently in Buildroot that select or depend on OpenSSL against libressl, I believe it would be a good fit for a Virtual package.

Hi Adam,

tested your patch series on both master and next branch and saw these errors after "make menuconfig":

package/libssl/Config.in:8:error: recursive dependency detected!
package/libssl/Config.in:8: choice <choice> contains symbol
BR2_PACKAGE_LIBSSL
package/libssl/Config.in:1: symbol BR2_PACKAGE_LIBSSL is selected by
BR2_PACKAGE_PYTHON_SSL
package/python/Config.in:76: symbol BR2_PACKAGE_PYTHON_SSL is selected
by BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
package/python-cryptography/Config.in:1: symbol
BR2_PACKAGE_PYTHON_CRYPTOGRAPHY depends on BR2_PACKAGE_OPENSSL
package/openssl/Config.in:1: symbol BR2_PACKAGE_OPENSSL is part of
choice <choice>

Regards, Bernd

#22 lore raw

cover libssl: new package

In reply to Adam Duskett

Hi Adam,

Wow, that's fast work!

Quoted 2 lines · Adam Duskett

- Add libssl as a new virtual package, and add OpenSSL as the only option. This prevents any package from breaking.

I briefly mentioned before but clearly didn't explain enough: this will not
fly. The problem is that we want existing configurations to keep working without a package silently disappearing. So the following procedure should work:

1. Create a .config with BR2_PACKAGE_OPENSSL=y

2. Apply your patches (i.e., bump Buildroot)

3. make menuconfig

4. Save

-> the openssl package must still be selected.

With your current approach, what happens is this: Kconfig reads in the old
configuration, doesn't see BR2_PACKAGE_LIBSSL=y, removes everything that depends on BR2_PACKAGE_LIBSSL, and thereby removes BR2_PACKAGE_OPENSSL.

It is acceptable if the user gets a warning when this happens - that's what
legacy handling does. But that will not happen here.

One solution would be to make libssl a more traditional virtual package, i.e.
one that can't be selected by the user. A traditional virtual package doesn't even define a Kconfig symbol (see for example package/opengl/*/Config.in). However, here we could use the Kconfig symbol to allow packages to select openssl-or-libressl:

config BR2_PACKAGE_LIBSSL
bool
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL

config BR2_PACKAGE_HAS_LIBSSL
bool

config BR2_PACKAGE_PROVIDES_LIBSSL
string

The openssl and libressl packages don't need to be changed, except that they need to define the value of BR2_PACKAGE_PROVIDES_LIBSSL. Note that typically there is also nothing stopping both providers to be selected simultaneously at the Kconfig level; instead this is checked when building. Adding mutual conclusion at the Kconfig level invariably leads to dependency cycles.

So that solution is not so nice for two reasons:
- it's not so clear to the user that they can choose between openssl and libressl;
- if the user selects both, they are only warned when building.

Therefore, an alternative approach is to call the virtual package openssl, and
rename the openssl package to openssl-orig or something. That way, an existing .config will still work because BR2_PACKAGE_OPENSSL is still a visible symbol with no dependencies. It has the additional benefit of not requiring the huge patch 3 (but see below).

I'm not sure which of the two options is best. Or maybe there is still a third
solution. Maybe something is possible by making BR2_PACKAGE_OPENSSL available even if BR2_PACKAGE_LIBSSL is not selected, and in the choice having two auxiliary symbols instead of directly using BR2_PACKAGE_OPENSSL/BR2_PACKAGE_LIBRESSL. But it gets hairy.

Quoted 1 line

- Add OpenSSL as a dependency to the broken packages.

This is really not nice: it means the user simply can't select these packages
any more unless he manually selects libssl and then openssl. The obvious solution would be to both 'select BR2_PACKAGE_LIBSSL' and 'depends on BR2_PACKAGE_OPENSSL' but I think that's a circular dependency for Kconfig. With my first alternative, the solution is simple: just let them select BR2_PACKAGE_OPENSSL.

Also, this really should be one patch per package.

Quoted 2 lines

- Convert all other packages that don't have OpenSSL as a dependency from openssl to libssl.

Ideally we'd only want to convert packages that someone has runtime tested with
libressl. However in this case I'm willing to make an exception - libressl is supposed to be compatible, and we already have plenty of package combinations that received no runtime testing.

Ideally this should also be one patch per package, but that's more than 100
patches and really boring. Personally I'm willing to accept this as a single patch, though Thomas will probably disagree.

With my first alternative, there is also no need to convert all packages before
adding libressl as a provider.

Quoted 2 lines

- Bump any packages that need to be updated to build against libreSSL to the current version.

These bumps can be applied independently, right?

Quoted 1 line

- Fix any make files that would cause LibreSSL from not working.

Again, should be one patch per package that you fix.

Quoted 2 lines

- Add fix-libressl-support.patch to any packages that need a patch to compile against libressl.

Same here.

Quoted 1 line

- Add LibreSSL as an option to libssl.

There we go! :-)

I've said this before but I'll repeat it: this is complicated stuff, expect it
to take months and several iterations before it gets (fully) applied. Ideally it should be split up into steps that can be applied incrementally, but I'm afraid that the first patch in the series will always commit us in a certain direction, so it will be difficult to progress gradually.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#23 lore raw

cover libssl: new package

Hi

I appreciate the fast response.

Quoted 4 lines · Arnout Vandecappelle

Hi Adam,

Wow, that's fast work!

20 hours of solid work really isn't fast.

Quoted 129 lines · Adam Duskett
Quoted 2 lines

- Add libssl as a new virtual package, and add OpenSSL as the only option. This prevents any package from breaking.

I briefly mentioned before but clearly didn't explain enough: this will not
fly. The problem is that we want existing configurations to keep working without a package silently disappearing. So the following procedure should work:

1. Create a .config with BR2_PACKAGE_OPENSSL=y

2. Apply your patches (i.e., bump Buildroot)

3. make menuconfig

4. Save

-> the openssl package must still be selected.

With your current approach, what happens is this: Kconfig reads in the old
configuration, doesn't see BR2_PACKAGE_LIBSSL=y, removes everything that depends on BR2_PACKAGE_LIBSSL, and thereby removes BR2_PACKAGE_OPENSSL.

It is acceptable if the user gets a warning when this happens - that's what
legacy handling does. But that will not happen here.

One solution would be to make libssl a more traditional virtual package, i.e.
one that can't be selected by the user. A traditional virtual package doesn't even define a Kconfig symbol (see for example package/opengl/*/Config.in). However, here we could use the Kconfig symbol to allow packages to select openssl-or-libressl:

config BR2_PACKAGE_LIBSSL
bool
select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL

config BR2_PACKAGE_HAS_LIBSSL
bool

config BR2_PACKAGE_PROVIDES_LIBSSL
string

The openssl and libressl packages don't need to be changed, except that they need to define the value of BR2_PACKAGE_PROVIDES_LIBSSL. Note that typically there is also nothing stopping both providers to be selected simultaneously at the Kconfig level; instead this is checked when building. Adding mutual conclusion at the Kconfig level invariably leads to dependency cycles.

So that solution is not so nice for two reasons:
- it's not so clear to the user that they can choose between openssl and libressl;
- if the user selects both, they are only warned when building.

Therefore, an alternative approach is to call the virtual package openssl, and
rename the openssl package to openssl-orig or something. That way, an existing .config will still work because BR2_PACKAGE_OPENSSL is still a visible symbol with no dependencies. It has the additional benefit of not requiring the huge patch 3 (but see below).

I'm not sure which of the two options is best. Or maybe there is still a third
solution. Maybe something is possible by making BR2_PACKAGE_OPENSSL available even if BR2_PACKAGE_LIBSSL is not selected, and in the choice having two auxiliary symbols instead of directly using BR2_PACKAGE_OPENSSL/BR2_PACKAGE_LIBRESSL. But it gets hairy.

Quoted 1 line

- Add OpenSSL as a dependency to the broken packages.

This is really not nice: it means the user simply can't select these packages
any more unless he manually selects libssl and then openssl. The obvious solution would be to both 'select BR2_PACKAGE_LIBSSL' and 'depends on BR2_PACKAGE_OPENSSL' but I think that's a circular dependency for Kconfig. With my first alternative, the solution is simple: just let them select BR2_PACKAGE_OPENSSL.

Also, this really should be one patch per package.

Quoted 2 lines

- Convert all other packages that don't have OpenSSL as a dependency from openssl to libssl.

Ideally we'd only want to convert packages that someone has runtime tested with
libressl. However in this case I'm willing to make an exception - libressl is supposed to be compatible, and we already have plenty of package combinations that received no runtime testing.

Ideally this should also be one patch per package, but that's more than 100
patches and really boring. Personally I'm willing to accept this as a single patch, though Thomas will probably disagree.

With my first alternative, there is also no need to convert all packages before
adding libressl as a provider.

Quoted 2 lines

- Bump any packages that need to be updated to build against libreSSL to the current version.

These bumps can be applied independently, right?

Quoted 1 line

- Fix any make files that would cause LibreSSL from not working.

Again, should be one patch per package that you fix.

Quoted 2 lines

- Add fix-libressl-support.patch to any packages that need a patch to compile against libressl.

Same here.

Quoted 1 line

- Add LibreSSL as an option to libssl.

There we go! :-)

I've said this before but I'll repeat it: this is complicated stuff, expect it
to take months and several iterations before it gets (fully) applied. Ideally it should be split up into steps that can be applied incrementally, but I'm afraid that the first patch in the series will always commit us in a certain direction, so it will be difficult to progress gradually.

Regards,
Arnout

Quoted 7 lines

--

Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

I want to first say this: I appreciate your response and your feedback.

However;

I don't have time nor the energy to rebase and made all the changes you have requested,
then some more arbitrary changes that other people will request that aren't outlined in the
buildroot manual.

As it sits, feel free to reject the series if you so wish to. For the next year, I am going to be solid
booked and I don't have time to fix this.

Again, I appreciate everything you guys are doing (And I certainly don't have the time nor the energy
to make 100+ patches for a package that nobody actually cares about :] )

Sorry for wasting your time!

Adam

#24 lore raw

cover libssl: new package

Hi Adam,

Quoted 9 lines · Adam Duskett

Hi

I appreciate the fast response.

Quoted 4 lines · Arnout Vandecappelle

Hi Adam,

Wow, that's fast work!

20 hours of solid work really isn't fast.

If you do those 20 hours of work within two days, I consider it really fast!

And sorry for my slow response this time over, I'm suffering a little from bad
internet connection on my holidays and when it got better, there was more recent stuff that bypassed this in the LIFO queue...

Quoted 7 lines
Quoted 7 lines · Adam Duskett
Quoted 2 lines

- Add libssl as a new virtual package, and add OpenSSL as the only option. This prevents any package from breaking.

I briefly mentioned before but clearly didn't explain enough: this will not
fly. The problem is that we want existing configurations to keep working without a package silently disappearing. So the following procedure should work:

[snip]

Quoted 9 lines

I want to first say this: I appreciate your response and your feedback.

However;

I don't have time nor the energy to rebase and made all the changes you have requested,
then some more arbitrary changes that other people will request that aren't outlined in the
buildroot manual.

What can we change in the manual to make this better? Adding a paragraph to
explain that existing .config's should never break, would that help? Something like:

==== Stable interface

Buildroot doesn't have much of an interface, except for the .config configuration file. To make it easy to continuously upgrade Buildroot, we make sure that a .config file that worked in a previous release, still yields the same combination of packages after an update. In some cases, this is not possible, e.g. because a configuration option has been renamed or removed. For this, the legacy handling approach [ref:...] must be implemented. In some more complicated cases, even legacy handling does not help and other solutions to maintain backward compatibility must be found.

Does that more or less sum up the issue here? Anything that can be improved
about the text?

About the "arbitrary changes" you mention, I guess you refer to the fact that
we first asked you NOT to make libssl a virtual package, and now we're changing our mind again? Well, indeed, it's a case of "advancing insight" as we say in Dutch. In addition, the very reason I didn't accept your first implementation of a virtual package was because it would break existing .configs, and this would block the adoption of libressl entirely. Now, at least, we have the libressl package in Buildroot (though admittedly it is of limited use if almost no package makes use of it).

Quoted 3 lines

As it sits, feel free to reject the series if you so wish to. For the next year, I am going to be solid
booked and I don't have time to fix this.

That's a pity, we really valued your contributions, especially since you are
able to deal with complicated stuff.

Could you at least take a look at the alternatives I proposed and give an
opinion on which one you think is most appropriate? Or perhaps you can even think of a third alternative? That will make life easier for anyone who is willing to take over this series.

Quoted 3 lines

Again, I appreciate everything you guys are doing (And I certainly don't have the time nor the energy
to make 100+ patches for a package that nobody actually cares about :] )

I don't think nobody cares about this - as proven by the discussion on IRC, I'd
say.

Quoted 1 line

Sorry for wasting your time!

Absolutely not. Free software projects with 100+ contributors only work because
people throw out ideas that are improved on by others.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF