[sr-dev] [kamailio/kamailio] mqtt: Add tls_alpn module option (PR #3261)

Olle E. Johansson notifications at github.com
Thu Oct 13 08:52:24 CEST 2022


@oej commented on this pull request.



> @@ -224,6 +224,17 @@ int mqtt_run_dispatcher(mqtt_dispatcher_cfg_t* cfg)
 			LM_ERR("mosquitto_tls_set() failed: %d %s\n",errno, strerror(errno));
 			return -1;
 		}
+        if (cfg->tls_alpn != NULL) {
+#if LIBMOSQUITTO_VERSION_NUMBER >= 1006000
+            res = mosquitto_string_option(_mosquitto, MOSQ_OPT_TLS_ALPN, cfg->tls_alpn);
+            if (res != MOSQ_ERR_SUCCESS) {
+                LM_ERR("mosquitto_string_option() failedi setting tls alpn: %d %s\n",errno, strerror(errno));

TLS upper case

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3261#discussion_r994226551
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3261/review/1140169329 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20221012/58d2f148/attachment.htm>


More information about the sr-dev mailing list