Mercurial > pidgin.yaz
comparison libgaim/sslconn.c @ 14262:baff095b146c
[gaim-migrate @ 16944]
Rename GaimProxyConnectInfo to GaimProxyConnectData, and change the
variables from connect_info to connect_data. Sorry, but I wanted
to get this right before it becomes permanent.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 21 Aug 2006 05:25:44 +0000 |
parents | 60b1bc8dbf37 |
children | 118fd0dc5b6e |
comparison
equal
deleted
inserted
replaced
14261:bb060cdc23d1 | 14262:baff095b146c |
---|---|
71 { | 71 { |
72 GaimSslConnection *gsc; | 72 GaimSslConnection *gsc; |
73 GaimSslOps *ops; | 73 GaimSslOps *ops; |
74 | 74 |
75 gsc = data; | 75 gsc = data; |
76 gsc->connect_info = NULL; | 76 gsc->connect_data = NULL; |
77 | 77 |
78 if (source < 0) | 78 if (source < 0) |
79 { | 79 { |
80 if (gsc->error_cb != NULL) | 80 if (gsc->error_cb != NULL) |
81 gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); | 81 gsc->error_cb(gsc, GAIM_SSL_CONNECT_FAILED, gsc->connect_cb_data); |
115 gsc->port = port; | 115 gsc->port = port; |
116 gsc->connect_cb_data = data; | 116 gsc->connect_cb_data = data; |
117 gsc->connect_cb = func; | 117 gsc->connect_cb = func; |
118 gsc->error_cb = error_func; | 118 gsc->error_cb = error_func; |
119 | 119 |
120 gsc->connect_info = gaim_proxy_connect(account, host, port, gaim_ssl_connect_cb, gsc); | 120 gsc->connect_data = gaim_proxy_connect(account, host, port, gaim_ssl_connect_cb, gsc); |
121 | 121 |
122 if (gsc->connect_info == NULL) | 122 if (gsc->connect_data == NULL) |
123 { | 123 { |
124 g_free(gsc->host); | 124 g_free(gsc->host); |
125 g_free(gsc); | 125 g_free(gsc); |
126 | 126 |
127 return NULL; | 127 return NULL; |
190 g_return_if_fail(gsc != NULL); | 190 g_return_if_fail(gsc != NULL); |
191 | 191 |
192 ops = gaim_ssl_get_ops(); | 192 ops = gaim_ssl_get_ops(); |
193 (ops->close)(gsc); | 193 (ops->close)(gsc); |
194 | 194 |
195 if (gsc->connect_info != NULL) | 195 if (gsc->connect_data != NULL) |
196 gaim_proxy_connect_cancel(gsc->connect_info); | 196 gaim_proxy_connect_cancel(gsc->connect_data); |
197 | 197 |
198 if (gsc->inpa > 0) | 198 if (gsc->inpa > 0) |
199 gaim_input_remove(gsc->inpa); | 199 gaim_input_remove(gsc->inpa); |
200 | 200 |
201 if (gsc->fd >= 0) | 201 if (gsc->fd >= 0) |