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/io.c

    rabbd8ed r47d3ac4  
    307307                {
    308308                        reply = xt_new_node( "starttls", NULL, NULL );
    309                         xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-tls" );
     309                        xt_add_attr( reply, "xmlns", XMLNS_TLS );
    310310                        if( !jabber_write_packet( gc, reply ) )
    311311                        {
     
    355355        {
    356356                reply = xt_new_node( "bind", NULL, xt_new_node( "resource", set_getstr( &gc->acc->set, "resource" ), NULL ) );
    357                 xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-bind" );
     357                xt_add_attr( reply, "xmlns", XMLNS_BIND );
    358358                reply = jabber_make_packet( "iq", "set", NULL, reply );
    359359                jabber_cache_add( gc, reply, jabber_pkt_bind_sess );
     
    368368        {
    369369                reply = xt_new_node( "session", NULL, NULL );
    370                 xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-session" );
     370                xt_add_attr( reply, "xmlns", XMLNS_SESSION );
    371371                reply = jabber_make_packet( "iq", "set", NULL, reply );
    372372                jabber_cache_add( gc, reply, jabber_pkt_bind_sess );
     
    400400        /* Just ignore it when it doesn't seem to be TLS-related (is that at
    401401           all possible??). */
    402         if( !xmlns || strcmp( xmlns, "urn:ietf:params:xml:ns:xmpp-tls" ) != 0 )
     402        if( !xmlns || strcmp( xmlns, XMLNS_TLS ) != 0 )
    403403                return XT_HANDLED;
    404404       
     
    433433        {
    434434                if( !( s = xt_find_attr( c, "xmlns" ) ) ||
    435                     strcmp( s, "urn:ietf:params:xml:ns:xmpp-streams" ) != 0 )
     435                    strcmp( s, XMLNS_STREAM_ERROR ) != 0 )
    436436                        continue;
    437437               
Note: See TracChangeset for help on using the changeset viewer.