Changeset 650
- Timestamp:
- 08/08/08 23:08:07 (5 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
sx/ack.c (modified) (1 diff)
-
sx/compress.c (modified) (1 diff)
-
util/uri.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sx/ack.c
r547 r650 54 54 55 55 /* only want ack packets */ 56 if((NAD_ENS(nad, 0) < 0 || NAD_NURI_L(nad, NAD_ENS(nad, 0)) != strlen(uri_ACK) || strncmp(NAD_NURI(nad, NAD_ENS(nad, 0)), uri_ACK, strlen(uri_ COMPRESS)) != 0))56 if((NAD_ENS(nad, 0) < 0 || NAD_NURI_L(nad, NAD_ENS(nad, 0)) != strlen(uri_ACK) || strncmp(NAD_NURI(nad, NAD_ENS(nad, 0)), uri_ACK, strlen(uri_ACK)) != 0)) 57 57 return 1; 58 58 -
trunk/sx/compress.c
r545 r650 126 126 _sx_debug(ZONE, "offering compression"); 127 127 128 ns = nad_add_namespace(nad, uri_COMPRESS , NULL);128 ns = nad_add_namespace(nad, uri_COMPRESS_FEATURE, NULL); 129 129 nad_append_elem(nad, ns, "compression", 1); 130 130 nad_append_elem(nad, ns, "method", 2); -
trunk/util/uri.h
r521 r650 43 43 #define uri_XSESSION "urn:ietf:params:xml:ns:xmpp-session" 44 44 #define uri_COMPRESS "http://jabber.org/protocol/compress" 45 #define uri_COMPRESS_FEATURE "http://jabber.org/features/compress" 45 46 #define uri_ACK "http://www.xmpp.org/extensions/xep-0198.html#ns" 46 47 #define uri_IQAUTH "http://jabber.org/features/iq-auth"
