From 47d3ac46306965e9db66096eef8c60c8e7985950 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 31 Oct 2006 09:25:41 +0100 Subject: Added #defines for XML namespaces. --- protocols/jabber/sasl.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/jabber/sasl.c') diff --git a/protocols/jabber/sasl.c b/protocols/jabber/sasl.c index a9676338..68953ced 100644 --- a/protocols/jabber/sasl.c +++ b/protocols/jabber/sasl.c @@ -24,8 +24,6 @@ #include "jabber.h" #include "base64.h" -#define SASL_NS "urn:ietf:params:xml:ns:xmpp-sasl" - xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data ) { struct gaim_connection *gc = data; @@ -44,7 +42,7 @@ xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data ) } s = xt_find_attr( node, "xmlns" ); - if( !s || strcmp( s, SASL_NS ) != 0 ) + if( !s || strcmp( s, XMLNS_SASL ) != 0 ) { signoff( gc ); return XT_ABORT; @@ -69,7 +67,7 @@ xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data ) } reply = xt_new_node( "auth", NULL, NULL ); - xt_add_attr( reply, "xmlns", SASL_NS ); + xt_add_attr( reply, "xmlns", XMLNS_SASL ); if( sup_digest ) { @@ -271,7 +269,7 @@ xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data ) } reply = xt_new_node( "response", s, NULL ); - xt_add_attr( reply, "xmlns", SASL_NS ); + xt_add_attr( reply, "xmlns", XMLNS_SASL ); if( !jabber_write_packet( gc, reply ) ) goto silent_error; @@ -302,7 +300,7 @@ xt_status sasl_pkt_result( struct xt_node *node, gpointer data ) char *s; s = xt_find_attr( node, "xmlns" ); - if( !s || strcmp( s, SASL_NS ) != 0 ) + if( !s || strcmp( s, XMLNS_SASL ) != 0 ) { signoff( gc ); return XT_ABORT; -- cgit v1.2.3