conn: added API xmpp_conn_is_secured()

This patch is provided by @kjkao. New API is already used in
WorksSystems/wks_xep0047.
This commit is contained in:
Dmitry Podgorny
2015-10-13 00:10:02 +03:00
parent 36af7afa27
commit b7fbc81740
4 changed files with 13 additions and 1 deletions

View File

@@ -216,6 +216,7 @@ void xmpp_conn_set_pass(xmpp_conn_t * const conn, const char * const pass);
xmpp_ctx_t* xmpp_conn_get_context(xmpp_conn_t * const conn);
void xmpp_conn_disable_tls(xmpp_conn_t * const conn);
void xmpp_conn_set_old_style_ssl(xmpp_conn_t * const conn);
int xmpp_conn_is_secured(xmpp_conn_t * const conn);
int xmpp_connect_client(xmpp_conn_t * const conn,
const char * const altdomain,