]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/xmpp_sasl_service.c
Began (but did not complete) implementation
[citadel.git] / citadel / modules / jabber / xmpp_sasl_service.c
index 2595423d82002a3305fca0c0ed21488f98d8dbc7..41458597404a9ced5466c985e03dbdc0a14f61b1 100644 (file)
@@ -119,4 +119,17 @@ void xmpp_sasl_auth(char *sasl_auth_mech, char *authstring) {
        }
 }
 
+/*
+ * Offer non-SASL authentication to legacy clients.
+ */
+void jabber_offer_non_sasl_authentication(void) {
+       cprintf("<query xmlns=\"jabber:iq:auth\">"
+               "<username/>"
+               "<password/>"
+               /* "<digest/>" */
+               /* "<resource/>" */
+               "</query>"
+       );
+}
+
 #endif /* HAVE_EXPAT */