|
void | xmpp_initialize (void) |
| Initialize the Strophe library. More...
|
|
void | xmpp_shutdown (void) |
| Shutdown the Strophe library. More...
|
|
int | xmpp_version_check (int major, int minor) |
| Check that Strophe supports a specific API version. More...
|
|
xmpp_ctx_t * | xmpp_ctx_new (const xmpp_mem_t *mem, const xmpp_log_t *log) |
| Create and initialize a Strophe context object. More...
|
|
void | xmpp_ctx_free (xmpp_ctx_t *ctx) |
| Free a Strophe context object that is no longer in use. More...
|
|
void | xmpp_ctx_set_verbosity (xmpp_ctx_t *ctx, int level) |
| Set the verbosity level of a Strophe context. More...
|
|
void | xmpp_free (const xmpp_ctx_t *ctx, void *p) |
| Free memory in a Strophe context. More...
|
|
xmpp_log_t * | xmpp_get_default_logger (xmpp_log_level_t level) |
| Get a default logger with filtering. More...
|
|
void | xmpp_send_error (xmpp_conn_t *conn, xmpp_error_type_t type, char *text) |
|
xmpp_conn_t * | xmpp_conn_new (xmpp_ctx_t *ctx) |
| Create a new Strophe connection object. More...
|
|
xmpp_conn_t * | xmpp_conn_clone (xmpp_conn_t *conn) |
| Clone a Strophe connection object. More...
|
|
int | xmpp_conn_release (xmpp_conn_t *conn) |
| Release a Strophe connection object. More...
|
|
long | xmpp_conn_get_flags (const xmpp_conn_t *conn) |
| Return applied flags for the connection. More...
|
|
int | xmpp_conn_set_flags (xmpp_conn_t *conn, long flags) |
| Set flags for the connection. More...
|
|
const char * | xmpp_conn_get_jid (const xmpp_conn_t *conn) |
| Get the JID which is or will be bound to the connection. More...
|
|
const char * | xmpp_conn_get_bound_jid (const xmpp_conn_t *conn) |
| Get the JID discovered during binding time. More...
|
|
void | xmpp_conn_set_jid (xmpp_conn_t *conn, const char *jid) |
| Set the JID of the user that will be bound to the connection. More...
|
|
void | xmpp_conn_set_cafile (xmpp_conn_t *const conn, const char *path) |
| Set the CAfile. More...
|
|
void | xmpp_conn_set_capath (xmpp_conn_t *const conn, const char *path) |
| Set the CApath. More...
|
|
void | xmpp_conn_set_certfail_handler (xmpp_conn_t *const conn, xmpp_certfail_handler hndl) |
| Set the Handler function which will be called when the TLS stack can't verify the CA of the server we're trying to connect to. More...
|
|
xmpp_tlscert_t * | xmpp_conn_get_peer_cert (xmpp_conn_t *const conn) |
| Retrieve the peer certificate. More...
|
|
void | xmpp_conn_set_client_cert (xmpp_conn_t *conn, const char *cert, const char *key) |
| Set the Client Certificate and Private Key that will be bound to the connection. More...
|
|
unsigned int | xmpp_conn_cert_xmppaddr_num (xmpp_conn_t *conn) |
| Get the number of xmppAddr entries in the client certificate. More...
|
|
char * | xmpp_conn_cert_xmppaddr (xmpp_conn_t *conn, unsigned int n) |
| Get a specific xmppAddr entry. More...
|
|
const char * | xmpp_conn_get_pass (const xmpp_conn_t *conn) |
| Get the password used for authentication of a connection. More...
|
|
void | xmpp_conn_set_pass (xmpp_conn_t *conn, const char *pass) |
| Set the password used to authenticate the connection. More...
|
|
xmpp_ctx_t * | xmpp_conn_get_context (xmpp_conn_t *conn) |
| Get the strophe context that the connection is associated with. More...
|
|
void | xmpp_conn_disable_tls (xmpp_conn_t *conn) |
| Disable TLS for this connection, called by users of the library. More...
|
|
int | xmpp_conn_is_secured (xmpp_conn_t *conn) |
| Return whether TLS session is established or not. More...
|
|
void | xmpp_conn_set_keepalive (xmpp_conn_t *conn, int timeout, int interval) |
| Set TCP keepalive parameters Turn on TCP keepalive and set timeout and interval. More...
|
|
int | xmpp_conn_is_connecting (xmpp_conn_t *conn) |
|
int | xmpp_conn_is_connected (xmpp_conn_t *conn) |
|
int | xmpp_conn_is_disconnected (xmpp_conn_t *conn) |
|
int | xmpp_connect_client (xmpp_conn_t *conn, const char *altdomain, unsigned short altport, xmpp_conn_handler callback, void *userdata) |
| Initiate a connection to the XMPP server. More...
|
|
int | xmpp_connect_component (xmpp_conn_t *conn, const char *server, unsigned short port, xmpp_conn_handler callback, void *userdata) |
| Initiate a component connection to server. More...
|
|
int | xmpp_connect_raw (xmpp_conn_t *conn, const char *altdomain, unsigned short altport, xmpp_conn_handler callback, void *userdata) |
| Initiate a raw connection to the XMPP server. More...
|
|
int | xmpp_conn_open_stream_default (xmpp_conn_t *conn) |
| Send the default opening stream tag. More...
|
|
int | xmpp_conn_open_stream (xmpp_conn_t *conn, char **attributes, size_t attributes_len) |
| Send an opening stream tag. More...
|
|
int | xmpp_conn_tls_start (xmpp_conn_t *conn) |
| Start synchronous TLS handshake with the server. More...
|
|
void | xmpp_disconnect (xmpp_conn_t *conn) |
| Initiate termination of the connection to the XMPP server. More...
|
|
void | xmpp_send (xmpp_conn_t *conn, xmpp_stanza_t *stanza) |
| Send an XML stanza to the XMPP server. More...
|
|
void | xmpp_send_raw_string (xmpp_conn_t *conn, const char *fmt,...) |
| Send a raw string to the XMPP server. More...
|
|
void | xmpp_send_raw (xmpp_conn_t *conn, const char *data, size_t len) |
| Send raw bytes to the XMPP server. More...
|
|
void | xmpp_timed_handler_add (xmpp_conn_t *conn, xmpp_timed_handler handler, unsigned long period, void *userdata) |
| Add a timed handler. More...
|
|
void | xmpp_timed_handler_delete (xmpp_conn_t *conn, xmpp_timed_handler handler) |
| Delete a timed handler. More...
|
|
void | xmpp_global_timed_handler_add (xmpp_ctx_t *ctx, xmpp_global_timed_handler handler, unsigned long period, void *userdata) |
| Add a global timed handler. More...
|
|
void | xmpp_global_timed_handler_delete (xmpp_ctx_t *ctx, xmpp_global_timed_handler handler) |
| Delete a global timed handler. More...
|
|
void | xmpp_handler_add (xmpp_conn_t *conn, xmpp_handler handler, const char *ns, const char *name, const char *type, void *userdata) |
| Add a stanza handler. More...
|
|
void | xmpp_handler_delete (xmpp_conn_t *conn, xmpp_handler handler) |
| Delete a stanza handler. More...
|
|
void | xmpp_id_handler_add (xmpp_conn_t *conn, xmpp_handler handler, const char *id, void *userdata) |
| Add an id based stanza handler. More...
|
|
void | xmpp_id_handler_delete (xmpp_conn_t *conn, xmpp_handler handler, const char *id) |
| Delete an id based stanza handler. More...
|
|
xmpp_stanza_t * | xmpp_stanza_new (xmpp_ctx_t *ctx) |
| Create a stanza object. More...
|
|
xmpp_stanza_t * | xmpp_stanza_new_from_string (xmpp_ctx_t *ctx, const char *str) |
| Create a stanza object from the string. More...
|
|
xmpp_stanza_t * | xmpp_stanza_clone (xmpp_stanza_t *stanza) |
| Clone a stanza object. More...
|
|
xmpp_stanza_t * | xmpp_stanza_copy (const xmpp_stanza_t *stanza) |
| Copy a stanza and its children. More...
|
|
int | xmpp_stanza_release (xmpp_stanza_t *stanza) |
| Release a stanza object and all of its children. More...
|
|
xmpp_ctx_t * | xmpp_stanza_get_context (const xmpp_stanza_t *stanza) |
| Get the strophe context that the stanza is associated with. More...
|
|
int | xmpp_stanza_is_text (xmpp_stanza_t *stanza) |
| Determine if a stanza is a text node. More...
|
|
int | xmpp_stanza_is_tag (xmpp_stanza_t *stanza) |
| Determine if a stanza is a tag node. More...
|
|
int | xmpp_stanza_to_text (xmpp_stanza_t *stanza, char **buf, size_t *buflen) |
| Render a stanza object to text. More...
|
|
xmpp_stanza_t * | xmpp_stanza_get_children (xmpp_stanza_t *stanza) |
| Get the list of children. More...
|
|
xmpp_stanza_t * | xmpp_stanza_get_child_by_name (xmpp_stanza_t *stanza, const char *name) |
| Get the first child of stanza with name. More...
|
|
xmpp_stanza_t * | xmpp_stanza_get_child_by_ns (xmpp_stanza_t *stanza, const char *ns) |
| Get the first child of a stanza with a given namespace. More...
|
|
xmpp_stanza_t * | xmpp_stanza_get_child_by_name_and_ns (xmpp_stanza_t *stanza, const char *name, const char *ns) |
| Get the first child of stanza with name and a given namespace. More...
|
|
xmpp_stanza_t * | xmpp_stanza_get_next (xmpp_stanza_t *stanza) |
| Get the next sibling of a stanza. More...
|
|
int | xmpp_stanza_add_child (xmpp_stanza_t *stanza, xmpp_stanza_t *child) |
| Add a child stanza to a stanza object. More...
|
|
int | xmpp_stanza_add_child_ex (xmpp_stanza_t *stanza, xmpp_stanza_t *child, int do_clone) |
| Add a child stanza to a stanza object. More...
|
|
const char * | xmpp_stanza_get_attribute (xmpp_stanza_t *stanza, const char *name) |
| Get an attribute from a stanza. More...
|
|
int | xmpp_stanza_get_attribute_count (xmpp_stanza_t *stanza) |
| Count the attributes in a stanza object. More...
|
|
int | xmpp_stanza_get_attributes (xmpp_stanza_t *stanza, const char **attr, int attrlen) |
| Get all attributes for a stanza object. More...
|
|
char * | xmpp_stanza_get_text (xmpp_stanza_t *stanza) |
| Get the text data for a text stanza. More...
|
|
const char * | xmpp_stanza_get_text_ptr (xmpp_stanza_t *stanza) |
| Get the text data pointer for a text stanza. More...
|
|
const char * | xmpp_stanza_get_name (xmpp_stanza_t *stanza) |
| Get the stanza name. More...
|
|
int | xmpp_stanza_set_attribute (xmpp_stanza_t *stanza, const char *key, const char *value) |
| Set an attribute for a stanza object. More...
|
|
int | xmpp_stanza_set_name (xmpp_stanza_t *stanza, const char *name) |
| Set the name of a stanza. More...
|
|
int | xmpp_stanza_set_text (xmpp_stanza_t *stanza, const char *text) |
| Set the text data for a text stanza. More...
|
|
int | xmpp_stanza_set_text_with_size (xmpp_stanza_t *stanza, const char *text, size_t size) |
| Set the text data for a text stanza. More...
|
|
int | xmpp_stanza_del_attribute (xmpp_stanza_t *stanza, const char *name) |
| Delete an attribute from a stanza. More...
|
|
const char * | xmpp_stanza_get_ns (xmpp_stanza_t *stanza) |
| Get the namespace attribute of the stanza object. More...
|
|
const char * | xmpp_stanza_get_type (xmpp_stanza_t *stanza) |
| Get the 'type' attribute of the stanza object. More...
|
|
const char * | xmpp_stanza_get_id (xmpp_stanza_t *stanza) |
| Get the 'id' attribute of the stanza object. More...
|
|
const char * | xmpp_stanza_get_to (xmpp_stanza_t *stanza) |
| Get the 'to' attribute of the stanza object. More...
|
|
const char * | xmpp_stanza_get_from (xmpp_stanza_t *stanza) |
| Get the 'from' attribute of the stanza object. More...
|
|
int | xmpp_stanza_set_ns (xmpp_stanza_t *stanza, const char *ns) |
| Set the stanza namespace. More...
|
|
int | xmpp_stanza_set_id (xmpp_stanza_t *stanza, const char *id) |
| Set the 'id' attribute of a stanza. More...
|
|
int | xmpp_stanza_set_type (xmpp_stanza_t *stanza, const char *type) |
| Set the 'type' attribute of a stanza. More...
|
|
int | xmpp_stanza_set_to (xmpp_stanza_t *stanza, const char *to) |
| Set the 'to' attribute of a stanza. More...
|
|
int | xmpp_stanza_set_from (xmpp_stanza_t *stanza, const char *from) |
| Set the 'from' attribute of a stanza. More...
|
|
xmpp_stanza_t * | xmpp_stanza_reply (xmpp_stanza_t *stanza) |
| Create a stanza object in reply to another. More...
|
|
xmpp_stanza_t * | xmpp_stanza_reply_error (xmpp_stanza_t *stanza, const char *error_type, const char *condition, const char *text) |
| Create an error stanza in reply to the provided stanza. More...
|
|
xmpp_stanza_t * | xmpp_message_new (xmpp_ctx_t *ctx, const char *type, const char *to, const char *id) |
| Create a <message> stanza object with given attributes. More...
|
|
char * | xmpp_message_get_body (xmpp_stanza_t *msg) |
| Get text from <body> child element. More...
|
|
int | xmpp_message_set_body (xmpp_stanza_t *msg, const char *text) |
| Add <body> child element to a <message> stanza with the given text. More...
|
|
xmpp_stanza_t * | xmpp_iq_new (xmpp_ctx_t *ctx, const char *type, const char *id) |
| Create an <iq> stanza object with given attributes. More...
|
|
xmpp_stanza_t * | xmpp_presence_new (xmpp_ctx_t *ctx) |
| Create a <presence> stanza object. More...
|
|
xmpp_stanza_t * | xmpp_error_new (xmpp_ctx_t *ctx, xmpp_error_type_t type, const char *text) |
| Create an <stream:error/> stanza object with given type and error text. More...
|
|
char * | xmpp_jid_new (xmpp_ctx_t *ctx, const char *node, const char *domain, const char *resource) |
| Create a JID string from component parts node, domain, and resource. More...
|
|
char * | xmpp_jid_bare (xmpp_ctx_t *ctx, const char *jid) |
| Create a bare JID from a JID. More...
|
|
char * | xmpp_jid_node (xmpp_ctx_t *ctx, const char *jid) |
| Create a node string from a JID. More...
|
|
char * | xmpp_jid_domain (xmpp_ctx_t *ctx, const char *jid) |
| Create a domain string from a JID. More...
|
|
char * | xmpp_jid_resource (xmpp_ctx_t *ctx, const char *jid) |
| Create a resource string from a JID. More...
|
|
void | xmpp_run_once (xmpp_ctx_t *ctx, unsigned long timeout) |
| Run the event loop once. More...
|
|
void | xmpp_run (xmpp_ctx_t *ctx) |
| Start the event loop. More...
|
|
void | xmpp_stop (xmpp_ctx_t *ctx) |
| Stop the event loop. More...
|
|
void | xmpp_ctx_set_timeout (xmpp_ctx_t *ctx, unsigned long timeout) |
| Set the timeout to use when calling xmpp_run(). More...
|
|
xmpp_ctx_t * | xmpp_tlscert_get_ctx (const xmpp_tlscert_t *cert) |
| Get the Strophe context which is assigned to this certificate. More...
|
|
xmpp_conn_t * | xmpp_tlscert_get_conn (const xmpp_tlscert_t *cert) |
| Get the Strophe connection which is assigned to this certificate. More...
|
|
const char * | xmpp_tlscert_get_pem (const xmpp_tlscert_t *cert) |
| Get the complete PEM of this certificate. More...
|
|
const char * | xmpp_tlscert_get_dnsname (const xmpp_tlscert_t *cert, size_t n) |
| Get the dnsName entries out of the SubjectAlternativeNames. More...
|
|
const char * | xmpp_tlscert_get_string (const xmpp_tlscert_t *cert, xmpp_cert_element_t elmnt) |
| Get various parts of the certificate as String. More...
|
|
const char * | xmpp_tlscert_get_description (xmpp_cert_element_t elmnt) |
| Get a descriptive string for each xmpp_cert_element_t. More...
|
|
void | xmpp_tlscert_free (xmpp_tlscert_t *cert) |
| Free a certificate object. More...
|
|
char * | xmpp_uuid_gen (xmpp_ctx_t *ctx) |
| Generate UUID version 4. More...
|
|
char * | xmpp_sha1 (xmpp_ctx_t *ctx, const unsigned char *data, size_t len) |
| Compute SHA1 message digest. More...
|
|
void | xmpp_sha1_digest (const unsigned char *data, size_t len, unsigned char *digest) |
| Compute SHA1 message digest. More...
|
|
xmpp_sha1_t * | xmpp_sha1_new (xmpp_ctx_t *ctx) |
| Create new SHA1 object. More...
|
|
void | xmpp_sha1_free (xmpp_sha1_t *sha1) |
| Destroy SHA1 object. More...
|
|
void | xmpp_sha1_update (xmpp_sha1_t *sha1, const unsigned char *data, size_t len) |
| Update SHA1 context with the next portion of data. More...
|
|
void | xmpp_sha1_final (xmpp_sha1_t *sha1) |
| Finish SHA1 computation. More...
|
|
char * | xmpp_sha1_to_string (xmpp_sha1_t *sha1, char *s, size_t slen) |
| Return message digest rendered as a string. More...
|
|
char * | xmpp_sha1_to_string_alloc (xmpp_sha1_t *sha1) |
| Return message digest rendered as a string. More...
|
|
void | xmpp_sha1_to_digest (xmpp_sha1_t *sha1, unsigned char *digest) |
| Stores message digest to a user's buffer. More...
|
|
char * | xmpp_base64_encode (xmpp_ctx_t *ctx, const unsigned char *data, size_t len) |
| Base64 encoding routine. More...
|
|
char * | xmpp_base64_decode_str (xmpp_ctx_t *ctx, const char *base64, size_t len) |
| Base64 decoding routine. More...
|
|
void | xmpp_base64_decode_bin (xmpp_ctx_t *ctx, const char *base64, size_t len, unsigned char **out, size_t *outlen) |
| Base64 decoding routine. More...
|
|