Commits

Roger Light  committed dfca74d

Fix compilation when using WITH_TLS=no.

Thanks to Karl Palsson.

  • Participants
  • Parent commits 15d4dfe
  • Branches 1.2.1

Comments (0)

Files changed (2)

File ChangeLog.txt

 - Fix support for Python 2.6, 3.0, 3.1.
 - Fix TLS subjectAltName verification and segfaults.
 - Handle EAGAIN in Python on Windows. Closes bug #1220004.
+- Fix compilation when using WITH_TLS=no.
 
 1.2 - 20130708
 ==============

File lib/mosquitto.c

 
 int mosquitto_tls_insecure_set(struct mosquitto *mosq, bool value)
 {
+#ifdef WITH_TLS
 	if(!mosq) return MOSQ_ERR_INVAL;
 	mosq->tls_insecure = value;
 	return MOSQ_ERR_SUCCESS;
+#else
+	return MOSQ_ERR_NOT_SUPPORTED;
+#endif
 }