Mercurial > pidgin.yaz
changeset 26272:2db8a92b3cde
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
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 16 Mar 2009 22:56:57 +0000 |
parents | a155920a6f66 |
children | a2b1ad53477a |
files | libpurple/util.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Mon Mar 16 22:52:12 2009 +0000 +++ b/libpurple/util.c Mon Mar 16 22:56:57 2009 +0000 @@ -4044,6 +4044,13 @@ &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,