From 64d65b3aeda64d889023659e231f5fe19ee65193 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Tue, 20 Oct 2015 14:36:43 +0300 Subject: [PATCH] examples: mention about xmpp_conn_set_flags() xmpp_conn_set_flags() provides features that people sometimes look for. Adding comment to examples will simplify the search. --- examples/active.c | 7 +++++++ examples/bot.c | 7 +++++++ examples/roster.c | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/examples/active.c b/examples/active.c index 7f29c07..6d857bf 100644 --- a/examples/active.c +++ b/examples/active.c @@ -104,6 +104,13 @@ int main(int argc, char **argv) /* create a connection */ conn = xmpp_conn_new(ctx); + /* + * also you can disable TLS support or force legacy SSL + * connection without STARTTLS + * + * see xmpp_conn_set_flags() or examples/basic.c + */ + /* setup authentication information */ xmpp_conn_set_jid(conn, argv[1]); xmpp_conn_set_pass(conn, argv[2]); diff --git a/examples/bot.c b/examples/bot.c index f67a521..9d7ddb2 100644 --- a/examples/bot.c +++ b/examples/bot.c @@ -154,6 +154,13 @@ int main(int argc, char **argv) /* create a connection */ conn = xmpp_conn_new(ctx); + /* + * also you can disable TLS support or force legacy SSL + * connection without STARTTLS + * + * see xmpp_conn_set_flags() or examples/basic.c + */ + /* setup authentication information */ xmpp_conn_set_jid(conn, jid); xmpp_conn_set_pass(conn, pass); diff --git a/examples/roster.c b/examples/roster.c index ced6627..ab0456d 100644 --- a/examples/roster.c +++ b/examples/roster.c @@ -109,6 +109,13 @@ int main(int argc, char **argv) /* create a connection */ conn = xmpp_conn_new(ctx); + /* + * also you can disable TLS support or force legacy SSL + * connection without STARTTLS + * + * see xmpp_conn_set_flags() or examples/basic.c + */ + /* setup authentication information */ xmpp_conn_set_jid(conn, argv[1]); xmpp_conn_set_pass(conn, argv[2]);