From e0303511cb85f600647c3d20c424f8dd5cbc19d0 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 13 Feb 2011 22:46:09 -0500 Subject: [PATCH] Only offer XMPP over TLS if we have OpenSSL in the build. --- citadel/modules/xmpp/serv_xmpp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/citadel/modules/xmpp/serv_xmpp.c b/citadel/modules/xmpp/serv_xmpp.c index 01d130155..aa3017e49 100644 --- a/citadel/modules/xmpp/serv_xmpp.c +++ b/citadel/modules/xmpp/serv_xmpp.c @@ -144,13 +144,12 @@ void xmpp_stream_start(void *data, const char *supplied_el, const char **attr) /* * TLS encryption (but only if it isn't already active) - * - * NOTE: if TLS doesn't handshake properly for whatever reason, - * comment out these three lines to disable it at the server. - */ + */ +#ifdef HAVE_OPENSSL if (!CC->redirect_ssl) { cprintf(""); } +#endif if (!CC->logged_in) { /* If we're not logged in yet, offer SASL as our feature set */ -- 2.30.2