conn: added new API xmpp_conn_set_flags()
xmpp_conn_set_flags() and xmpp_conn_get_flags() unify interface of connection configuration. This interface allows compile-time check of supported features or even run-time check. Therefore, applications can be built with older libstrophe which doesn't support some optional flags.
This commit is contained in:
@@ -269,8 +269,8 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
|
||||
conn->state = XMPP_STATE_CONNECTED;
|
||||
xmpp_debug(ctx, "xmpp", "connection successful");
|
||||
|
||||
if (conn->tls_is_old_ssl) {
|
||||
xmpp_debug(ctx, "xmpp", "using old style SSL connection");
|
||||
if (conn->tls_legacy_ssl) {
|
||||
xmpp_debug(ctx, "xmpp", "using legacy SSL connection");
|
||||
ret = conn_tls_start(conn);
|
||||
if (ret != 0) {
|
||||
conn_disconnect(conn);
|
||||
|
||||
Reference in New Issue
Block a user