From 055be639b385029a7540ec22cc926392c7ca1dde Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 19 Feb 2018 11:35:41 +0000 Subject: mosquitto: auto-disable TLS-PSK support if not available OpenSSL grew the ability to turn off TLS-PSK support. Make sure that mosquitto turns on/off TLS-PSK support based on this OpenSSL config. Fixes https://github.com/openwrt/packages/issues/5633 Signed-off-by: Karl Palsson --- net/mosquitto/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/mosquitto') diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile index 189ac5a14..667057014 100644 --- a/net/mosquitto/Makefile +++ b/net/mosquitto/Makefile @@ -60,7 +60,8 @@ endef define Package/mosquitto-ssl/description $(call Package/mosquitto/default/description) - This package is built with SSL support +This package is built with SSL support. TLS-PSK will be included (in both +the client and broker) if OpenSSL is built with TLS-PSK support. endef define Package/mosquitto-nossl/description @@ -218,6 +219,7 @@ ifeq ($(BUILD_VARIANT),nossl) MAKE_FLAGS += WITH_TLS=no WITH_WEBSOCKETS=no else MAKE_FLAGS += WITH_WEBSOCKETS=$(if $(CONFIG_MOSQUITTO_LWS),"yes","no") + MAKE_FLAGS += WITH_TLS_PSK=$(if $(CONFIG_OPENSSL_WITH_PSK),"yes","no") endif $(eval $(call BuildPackage,mosquitto-ssl)) -- cgit v1.2.3