mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-29 19:56:07 -04:00
Added HAVE_LIBMESODE check before setting cert path
This commit is contained in:
parent
bd42185389
commit
3e38d64397
@ -419,10 +419,12 @@ _jabber_connect(const char * const fulljid, const char * const passwd,
|
|||||||
xmpp_conn_disable_tls(jabber_conn.conn);
|
xmpp_conn_disable_tls(jabber_conn.conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBMESODE
|
||||||
char *cert_path = prefs_get_string(PREF_CERT_PATH);
|
char *cert_path = prefs_get_string(PREF_CERT_PATH);
|
||||||
if (cert_path) {
|
if (cert_path) {
|
||||||
xmpp_conn_tlscert_path(jabber_conn.conn, cert_path);
|
xmpp_conn_tlscert_path(jabber_conn.conn, cert_path);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBMESODE
|
#ifdef HAVE_LIBMESODE
|
||||||
int connect_status = xmpp_connect_client(jabber_conn.conn, altdomain, port,
|
int connect_status = xmpp_connect_client(jabber_conn.conn, altdomain, port,
|
||||||
|
Loading…
Reference in New Issue
Block a user