strophe / libstrophe

A simple, lightweight C library for writing XMPP clients
http://strophe.im/libstrophe
Other
401 stars 163 forks source link

XEP-0138 stream compression #231

Closed sjaeckel closed 8 months ago

sjaeckel commented 8 months ago

This adds support for XEP-0138 stream compression.

Support for XEP-0138 is enabled by default if zlib can be found on the build-system.

New compile time option: --disable-zlib New run time options/flags: XMPP_CONN_FLAG_ENABLE_COMPRESSION and XMPP_CONN_FLAG_COMPRESSION_DONT_RESET

The feature is disabled by default, since it is deemed insecure. In a closed/controlled scenario (e.g. some M2M applications) it can still be useful.