extensions: Automatically set ssl/tls depending on the XMPP server