pidgin: 86dac605: Add a friendly error message if somethin...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Mar 16 19:00:35 EDT 2009


-----------------------------------------------------------------
Revision: 86dac605e7e7ef1ac36e03862a15ef24ef31d9dc
Ancestor: 8ff6344fc9c516d74820cee68c4d5504bbae436a
Author: markdoliner at pidgin.im
Date: 2009-03-16T22:56:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/86dac605e7e7ef1ac36e03862a15ef24ef31d9dc

Modified files:
        libpurple/util.c

ChangeLog: 

Add a friendly error message if something uses
purple_util_fetch_url_request_len() to fetch an https URL when libpurple
has not been compiled with ssl

-------------- next part --------------
============================================================
--- libpurple/util.c	d6274467003e6a941f0ded2bf0084cba28184ea7
+++ libpurple/util.c	8c4e4787d5558dbb66ce2d53c3d42c468b95e4bf
@@ -4044,6 +4044,13 @@ purple_util_fetch_url_request_len(const 
 				   &gfud->website.page, &gfud->website.user, &gfud->website.passwd);
 
 	if (purple_strcasestr(url, "https://") != NULL) {
+		if (!purple_ssl_is_supported()) {
+			purple_util_fetch_url_error(gfud,
+					_("Unable to connect to %s: Server requires TLS/SSL, but no TLS/SSL support was found."),
+					gfud->website.address);
+			return NULL;
+		}
+
 		gfud->is_ssl = TRUE;
 		gfud->ssl_connection = purple_ssl_connect(NULL,
 				gfud->website.address, gfud->website.port,


More information about the Commits mailing list