Mercurial > pidgin
comparison libpurple/protocols/oscar/clientlogin.c @ 29406:fa8a25b46252
401/1014 is a bad signature (it's what I've been getting while testing startOSCARSession over https).
This is also the error that Ubuntu/Debian/anyone who applied the hacky patch
to fix clientLogin+SSL will be getting, so we really shouldn't print out
the connecting/disconnecting too frequently error.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 19 Feb 2010 05:26:00 +0000 |
parents | 66a15a093e61 |
children | 519905ba5f75 |
comparison
equal
deleted
inserted
replaced
29405:dfb7522f2a92 | 29406:fa8a25b46252 |
---|---|
175 | 175 |
176 /* Make sure the status code was 200 */ | 176 /* Make sure the status code was 200 */ |
177 code = atoi(tmp); | 177 code = atoi(tmp); |
178 if (code != 200) | 178 if (code != 200) |
179 { | 179 { |
180 xmlnode *status_detail_node; | |
181 guint status_detail = 0; | |
182 | |
183 status_detail_node = xmlnode_get_child(response_node, | |
184 "statusDetailCode"); | |
185 if (status_detail_node) { | |
186 gchar *data = xmlnode_get_data(status_detail_node); | |
187 if (data) { | |
188 status_detail = atoi(data); | |
189 g_free(data); | |
190 } | |
191 } | |
192 | |
180 purple_debug_error("oscar", "startOSCARSession response statusCode " | 193 purple_debug_error("oscar", "startOSCARSession response statusCode " |
181 "was %s: %s\n", tmp, response); | 194 "was %s: %s\n", tmp, response); |
182 | 195 |
183 if (code == 401 || code == 607) | 196 if ((code == 401 && status_detail != 1014) || code == 607) |
184 purple_connection_error_reason(gc, | 197 purple_connection_error_reason(gc, |
185 PURPLE_CONNECTION_ERROR_OTHER_ERROR, | 198 PURPLE_CONNECTION_ERROR_OTHER_ERROR, |
186 _("You have been connecting and disconnecting too " | 199 _("You have been connecting and disconnecting too " |
187 "frequently. Wait ten minutes and try again. If " | 200 "frequently. Wait ten minutes and try again. If " |
188 "you continue to try, you will need to wait even " | 201 "you continue to try, you will need to wait even " |