Add /tls certpath default

issue #871
This commit is contained in:
James Booth
2016-10-17 23:48:03 +01:00
parent 0e1df8c542
commit 5b464f4cb0
6 changed files with 53 additions and 5 deletions

View File

@@ -160,11 +160,11 @@ connection_connect(const char *const fulljid, const char *const passwd, const ch
}
#ifdef HAVE_LIBMESODE
char *cert_path = prefs_get_string(PREF_TLS_CERTPATH);
char *cert_path = prefs_get_tls_certpath();
if (cert_path) {
xmpp_conn_tlscert_path(conn.xmpp_conn, cert_path);
free(cert_path);
}
prefs_free_string(cert_path);
int connect_status = xmpp_connect_client(
conn.xmpp_conn,