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 <karlp@etactica.com>
This commit is contained in:
Karl Palsson 2018-02-19 11:35:41 +00:00
parent a0855d59fd
commit 055be639b3
1 changed files with 3 additions and 1 deletions

View File

@ -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))