comparison libpurple/sslconn.c @ 18959:88be01d503fb

disapproval of revision 'e408398aae606a1aafb857413db4fa9736e374ae'
author William Ehlhardt <williamehlhardt@gmail.com>
date Sun, 08 Jul 2007 01:37:23 +0000
parents db67f6b39b72
children 90d8d8bb395a
comparison
equal deleted inserted replaced
18958:db67f6b39b72 18959:88be01d503fb
116 gsc->port = port; 116 gsc->port = port;
117 gsc->connect_cb_data = data; 117 gsc->connect_cb_data = data;
118 gsc->connect_cb = func; 118 gsc->connect_cb = func;
119 gsc->error_cb = error_func; 119 gsc->error_cb = error_func;
120 120
121 /* TODO: remove the following line, as the verifier should be
122 specified Somewhere Else */
123 gsc->verifier = purple_certificate_find_verifier("x509","singleuse");
124
125 gsc->connect_data = purple_proxy_connect(NULL, account, host, port, purple_ssl_connect_cb, gsc); 121 gsc->connect_data = purple_proxy_connect(NULL, account, host, port, purple_ssl_connect_cb, gsc);
126 122
127 if (gsc->connect_data == NULL) 123 if (gsc->connect_data == NULL)
128 { 124 {
129 g_free(gsc->host); 125 g_free(gsc->host);
192 gsc->error_cb = error_func; 188 gsc->error_cb = error_func;
193 gsc->fd = fd; 189 gsc->fd = fd;
194 if(host) 190 if(host)
195 gsc->host = g_strdup(host); 191 gsc->host = g_strdup(host);
196 192
197 /* TODO: remove the following line, as the verifier should be
198 specified Somewhere Else */
199 gsc->verifier = purple_certificate_find_verifier("x509","singleuse");
200
201 ops = purple_ssl_get_ops(); 193 ops = purple_ssl_get_ops();
202 ops->connectfunc(gsc); 194 ops->connectfunc(gsc);
203 195
204 return (PurpleSslConnection *)gsc; 196 return (PurpleSslConnection *)gsc;
205 } 197 }