With rP22856 / D2264 it became possible to pass arbitrary JS object properties to GUI messages, so the certificate information can be passed comfortably and independently.
This has two advantages for the certificate error string:
- All XmppClient functions that take a gloox enum value and create a string from it become independent of the XmppClient instance, allowing this to become static, which allows this function to be used by ScriptInterface::ToJSVal<glooxenum> for instance.
- The JS GUI can decide to display the certificate error differently, for example in a different textfield or verbose popup or whatever.