Mercurial > pidgin.yaz
diff plugins/ssl/ssl-gnutls.c @ 7274:448e39ace278
[gaim-migrate @ 7851]
Added a parameter to gaim_ssl_connect() to specify an optional error
callback. MSN takes advantage of it, but since I can't reproduce the errors
here, I'm not positive it works. It should though! Famous last words.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 15 Oct 2003 06:32:13 +0000 |
parents | e885d4963a68 |
children | 35e652831230 |
line wrap: on
line diff
--- a/plugins/ssl/ssl-gnutls.c Wed Oct 15 06:11:26 2003 +0000 +++ b/plugins/ssl/ssl-gnutls.c Wed Oct 15 06:32:13 2003 +0000 @@ -94,7 +94,9 @@ { gaim_debug_error("gnutls", "Handshake failed\n"); - /* XXX: notify the guy expecting the callback somehow? */ + if (gsc->error_cb != NULL) + gsc->error_cb(gsc, GAIM_SSL_HANDSHAKE_FAILED, data); + gaim_ssl_close(gsc); } else