im.pidgin.cpw.resiak.disconnectreason: 67c56a6c8e6b6373f9fccc1b6bf859ba5d0d10db

resiak at soc.pidgin.im resiak at soc.pidgin.im
Wed Oct 3 13:56:51 EDT 2007


revision:            67c56a6c8e6b6373f9fccc1b6bf859ba5d0d10db
date:                2007-09-19T15:01:47
author:              resiak at soc.pidgin.im
branch:              im.pidgin.cpw.resiak.disconnectreason
changelog:
Use purple_connection_ssl_error in prpl-irc

manifest:
format_version "1"

new_manifest [afd100e69b02812071113dfc8b1ac88b45e3a7c3]

old_revision [01a63059fae1683476c49e5e5ade731afcc22d68]

patch "libpurple/protocols/irc/irc.c"
 from [9d72f189192bee9eb74a0b63c31c3b8aa44974e5]
   to [eba0996982ff9f6f716971d725884415d41cf14a]
-------------- next part --------------
#
#
# patch "libpurple/protocols/irc/irc.c"
#  from [9d72f189192bee9eb74a0b63c31c3b8aa44974e5]
#    to [eba0996982ff9f6f716971d725884415d41cf14a]
#
============================================================
--- libpurple/protocols/irc/irc.c	9d72f189192bee9eb74a0b63c31c3b8aa44974e5
+++ libpurple/protocols/irc/irc.c	eba0996982ff9f6f716971d725884415d41cf14a
@@ -442,21 +442,7 @@ irc_ssl_connect_failure(PurpleSslConnect
 
 	irc->gsc = NULL;
 
-	switch (error) {
-		case PURPLE_SSL_HANDSHAKE_FAILED:
-		case PURPLE_SSL_CONNECT_FAILED:
-			reason = PURPLE_REASON_ENCRYPTION_ERROR;
-			break;
-		case PURPLE_SSL_CERTIFICATE_INVALID:
-			/* TODO: maybe PURPLE_SSL_* should be more specific? */
-			reason = PURPLE_REASON_CERT_OTHER_ERROR;
-			break;
-		default:
-			g_assert_not_reached ();
-			reason = PURPLE_REASON_ENCRYPTION_ERROR;
-	}
-
-	purple_connection_error_reason (gc, reason, purple_ssl_strerror(error));
+	purple_connection_ssl_error (gc, error);
 }
 
 static void irc_close(PurpleConnection *gc)


More information about the Commits mailing list