Mercurial > pidgin.yaz
comparison plugins/ssl/ssl-nss.c @ 8362:1976914caa51
[gaim-migrate @ 9087]
made SSL error handling a little better
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 28 Feb 2004 21:14:51 +0000 |
parents | 8d012c803411 |
children | d7b8eb1f0a18 |
comparison
equal
deleted
inserted
replaced
8361:8ef2f2043902 | 8362:1976914caa51 |
---|---|
168 | 168 |
169 if (nss_data->fd == NULL) | 169 if (nss_data->fd == NULL) |
170 { | 170 { |
171 gaim_debug_error("nss", "nss_data->fd == NULL!\n"); | 171 gaim_debug_error("nss", "nss_data->fd == NULL!\n"); |
172 | 172 |
173 if (gsc->error_cb != NULL) | |
174 gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); | |
175 | |
173 gaim_ssl_close((GaimSslConnection *)gsc); | 176 gaim_ssl_close((GaimSslConnection *)gsc); |
174 | 177 |
175 return; | 178 return; |
176 } | 179 } |
177 | 180 |
183 nss_data->in = SSL_ImportFD(NULL, nss_data->fd); | 186 nss_data->in = SSL_ImportFD(NULL, nss_data->fd); |
184 | 187 |
185 if (nss_data->in == NULL) | 188 if (nss_data->in == NULL) |
186 { | 189 { |
187 gaim_debug_error("nss", "nss_data->in == NUL!\n"); | 190 gaim_debug_error("nss", "nss_data->in == NUL!\n"); |
191 | |
192 if (gsc->error_cb != NULL) | |
193 gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); | |
188 | 194 |
189 gaim_ssl_close((GaimSslConnection *)gsc); | 195 gaim_ssl_close((GaimSslConnection *)gsc); |
190 | 196 |
191 return; | 197 return; |
192 } | 198 } |