Hi,
I've attached a small patch which adds support for the XMPP protocol in client mode. It does pretty much what Brian Hatch has outlined under [1]. I've tested it with several Jabber servers and it seems to work nicely.
I'd be very happy about any comments.
Regards, Philipp
[1] http://stunnel.mirt.net/pipermail/stunnel-users/2009-February/002278.html