diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-31 09:25:41 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-31 09:25:41 +0100 | 
| commit | 47d3ac46306965e9db66096eef8c60c8e7985950 (patch) | |
| tree | 7e3242bf404befb15e6ffea870d7f38a6647c730 /protocols/jabber/sasl.c | |
| parent | abbd8ede1eb5eeb9b82e09357e0b38949bc95b8d (diff) | |
Added #defines for XML namespaces.
Diffstat (limited to 'protocols/jabber/sasl.c')
| -rw-r--r-- | protocols/jabber/sasl.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| 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; | 
