Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
7273:d152ea377e4a | 7274:448e39ace278 |
---|---|
92 | 92 |
93 if (ret < 0) | 93 if (ret < 0) |
94 { | 94 { |
95 gaim_debug_error("gnutls", "Handshake failed\n"); | 95 gaim_debug_error("gnutls", "Handshake failed\n"); |
96 | 96 |
97 /* XXX: notify the guy expecting the callback somehow? */ | 97 if (gsc->error_cb != NULL) |
98 gsc->error_cb(gsc, GAIM_SSL_HANDSHAKE_FAILED, data); | |
99 | |
98 gaim_ssl_close(gsc); | 100 gaim_ssl_close(gsc); |
99 } | 101 } |
100 else | 102 else |
101 { | 103 { |
102 gsc->connect_cb(gsc->connect_cb_data, gsc, cond); | 104 gsc->connect_cb(gsc->connect_cb_data, gsc, cond); |