--- a/libpurple/protocols/jabber/jabber.c Mon Sep 19 23:59:49 2022 -0500 +++ b/libpurple/protocols/jabber/jabber.c Tue Sep 20 00:44:31 2022 -0500 @@ -731,10 +731,14 @@ /* Connection already closed/freed. Escape. */ } else if (g_error_matches(error, G_TLS_ERROR, G_TLS_ERROR_HANDSHAKE)) { /* In Gio, a handshake error is because of the cert */ - purple_connection_ssl_error(js->gc, PURPLE_SSL_CERTIFICATE_INVALID); + purple_connection_error(js->gc, + PURPLE_CONNECTION_ERROR_CERT_OTHER_ERROR, + _("SSL peer presented an invalid certificate")); } else { /* Report any other errors as handshake failing */ - purple_connection_ssl_error(js->gc, PURPLE_SSL_HANDSHAKE_FAILED); + purple_connection_error(js->gc, + PURPLE_CONNECTION_ERROR_ENCRYPTION_ERROR, + _("SSL Handshake Failed")); } g_error_free(error); @@ -770,7 +774,8 @@ "Error creating TLS client connection: %s", error->message); g_clear_error(&error); - purple_connection_ssl_error(js->gc, PURPLE_SSL_CONNECT_FAILED); + purple_connection_error(js->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, + _("SSL Connection Failed")); return; }