about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-24 01:13:45 +0100
committerJames Booth <boothj5@gmail.com>2015-09-24 01:13:45 +0100
commit3e38d64397d7c26a782410f82f486c3de087bf40 (patch)
tree371c62a58e3832c331e8184e9157067db8165148 /src
parentbd421853897b432a2877da549eb7dbc4a67503e3 (diff)
downloadprofani-tty-3e38d64397d7c26a782410f82f486c3de087bf40.tar.gz
Added HAVE_LIBMESODE check before setting cert path
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index e4a5bb32..768a4476 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -419,10 +419,12 @@ _jabber_connect(const char * const fulljid, const char * const passwd,
         xmpp_conn_disable_tls(jabber_conn.conn);
     }
 
+#ifdef HAVE_LIBMESODE
     char *cert_path = prefs_get_string(PREF_CERT_PATH);
     if (cert_path) {
         xmpp_conn_tlscert_path(jabber_conn.conn, cert_path);
     }
+#endif
 
 #ifdef HAVE_LIBMESODE
     int connect_status = xmpp_connect_client(jabber_conn.conn, altdomain, port,