2 * Copyright (C) 2008 Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 typedef struct _hc_xmpp_t hc_xmpp_t;
27 #define HC_XMPP_NS_TLS "urn:ietf:params:xml:ns:xmpp-tls"
28 #define HC_XMPP_NS_SASL "urn:ietf:params:xml:ns:xmpp-sasl"
30 hc_xmpp_t * hc_xmpp_new (void);
31 int hc_xmpp_is_tls_supported (hc_xmpp_t *);
32 int hc_xmpp_is_tls_required (hc_xmpp_t *);
33 int hc_xmpp_is_tls_optional (hc_xmpp_t *);
34 int hc_xmpp_is_tls_enabled (hc_xmpp_t *);
35 int hc_xmpp_is_sasl_supported (hc_xmpp_t *);
36 int hc_xmpp_is_sasl_required (hc_xmpp_t *);
37 int hc_xmpp_is_sasl_optional (hc_xmpp_t *);
38 int hc_xmpp_is_sasl_enabled (hc_xmpp_t *);
39 void hc_xmpp_features (hc_xmpp_t *, iks *);