Added option to disable TLS

The connection object includes a tls_support flag, which can
be disabled with xmpp_conn_disable_tls().
This commit is contained in:
James Booth
2012-05-20 01:50:32 +01:00
parent cc979d4811
commit 9615a55856
4 changed files with 21 additions and 3 deletions

View File

@@ -163,6 +163,7 @@ struct _xmpp_conn_t {
tls_t *tls;
int tls_support;
int tls_disabled;
int tls_failed; /* set when tls fails, so we don't try again */
int sasl_support; /* if true, field is a bitfield of supported
mechanisms */