From 285f0b800d9428c19530a17e25be069e38e2542d Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Wed, 14 Dec 2016 22:35:37 +0100 Subject: Add flags for libstrophe > 0.8.9 --- rust/clib/sendxmpp.c | 8 ++++---- 1 file 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 +#include +#include 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); -- cgit v1.2.1