Mercurial > pidgin.yaz
comparison libpurple/util.c @ 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 | 00c659e55902 |
children | e72df47d41fe 1688f7e15530 |
comparison
equal
deleted
inserted
replaced
26271:a155920a6f66 | 26272:2db8a92b3cde |
---|---|
4042 | 4042 |
4043 purple_url_parse(url, &gfud->website.address, &gfud->website.port, | 4043 purple_url_parse(url, &gfud->website.address, &gfud->website.port, |
4044 &gfud->website.page, &gfud->website.user, &gfud->website.passwd); | 4044 &gfud->website.page, &gfud->website.user, &gfud->website.passwd); |
4045 | 4045 |
4046 if (purple_strcasestr(url, "https://") != NULL) { | 4046 if (purple_strcasestr(url, "https://") != NULL) { |
4047 if (!purple_ssl_is_supported()) { | |
4048 purple_util_fetch_url_error(gfud, | |
4049 _("Unable to connect to %s: Server requires TLS/SSL, but no TLS/SSL support was found."), | |
4050 gfud->website.address); | |
4051 return NULL; | |
4052 } | |
4053 | |
4047 gfud->is_ssl = TRUE; | 4054 gfud->is_ssl = TRUE; |
4048 gfud->ssl_connection = purple_ssl_connect(NULL, | 4055 gfud->ssl_connection = purple_ssl_connect(NULL, |
4049 gfud->website.address, gfud->website.port, | 4056 gfud->website.address, gfud->website.port, |
4050 ssl_url_fetch_connect_cb, ssl_url_fetch_error_cb, gfud); | 4057 ssl_url_fetch_connect_cb, ssl_url_fetch_error_cb, gfud); |
4051 } else { | 4058 } else { |