summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-14 22:35:37 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-17 15:10:42 +0100
commit285f0b800d9428c19530a17e25be069e38e2542d (patch)
tree08a059ac3b67ed07b0f2511e3937c5dc9ab1ba41
parent9c769dfe5b8149403ba27271452d794b5742e73a (diff)
downloadauth-xmppmessage-285f0b800d9428c19530a17e25be069e38e2542d.tar.gz
auth-xmppmessage-285f0b800d9428c19530a17e25be069e38e2542d.zip
Add flags for libstrophe > 0.8.9
-rw-r--r--rust/clib/sendxmpp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/clib/sendxmpp.c b/rust/clib/sendxmpp.c
index bfd4079..3f06202 100644
--- a/rust/clib/sendxmpp.c
+++ b/rust/clib/sendxmpp.c
@@ -1,4 +1,6 @@
#include <strophe.h>
+#include <stdio.h>
+#include <stdlib.h>
struct message {
const char * to;
@@ -51,8 +53,7 @@ void send_message(const char * jid,
msg->to = to;
msg->message = message;
- // TODO: Wait for version 0.8.9
-// long flags = XMPP_CONN_FLAG_MANDATORY_TLS;
+ long flags = XMPP_CONN_FLAG_MANDATORY_TLS;
/* init library */
xmpp_initialize();
@@ -65,8 +66,7 @@ void send_message(const char * jid,
conn = xmpp_conn_new(ctx);
/* configure connection properties (optional) */
- // TODO: Wait for version 0.8.9
-// xmpp_conn_set_flags(conn, flags);
+ xmpp_conn_set_flags(conn, flags);
/* setup authentication information */
xmpp_conn_set_jid(conn, jid);