Ignore:
Timestamp:
2006-10-31T08:25:41Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0d3f30f
Parents:
abbd8ed
Message:

Added #defines for XML namespaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/sasl.c

    rabbd8ed r47d3ac4  
    2424#include "jabber.h"
    2525#include "base64.h"
    26 
    27 #define SASL_NS "urn:ietf:params:xml:ns:xmpp-sasl"
    2826
    2927xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data )
     
    4543       
    4644        s = xt_find_attr( node, "xmlns" );
    47         if( !s || strcmp( s, SASL_NS ) != 0 )
     45        if( !s || strcmp( s, XMLNS_SASL ) != 0 )
    4846        {
    4947                signoff( gc );
     
    7068       
    7169        reply = xt_new_node( "auth", NULL, NULL );
    72         xt_add_attr( reply, "xmlns", SASL_NS );
     70        xt_add_attr( reply, "xmlns", XMLNS_SASL );
    7371       
    7472        if( sup_digest )
     
    272270       
    273271        reply = xt_new_node( "response", s, NULL );
    274         xt_add_attr( reply, "xmlns", SASL_NS );
     272        xt_add_attr( reply, "xmlns", XMLNS_SASL );
    275273       
    276274        if( !jabber_write_packet( gc, reply ) )
     
    303301       
    304302        s = xt_find_attr( node, "xmlns" );
    305         if( !s || strcmp( s, SASL_NS ) != 0 )
     303        if( !s || strcmp( s, XMLNS_SASL ) != 0 )
    306304        {
    307305                signoff( gc );
Note: See TracChangeset for help on using the changeset viewer.