comparison libpurple/sslconn.h @ 31633:1e5654e2928d

propagate from branch 'im.pidgin.pidgin' (head ea17b906d0f9b7422adfebcbec58d7c06d3bd8bc) to branch 'im.pidgin.pidgin.openq' (head 0f8a2684fb6f0f7221bde3bedd5734241bfb7ff5)
author SHiNE CsyFeK <csyfek@gmail.com>
date Sat, 18 Jul 2009 15:15:45 +0000
parents 12f5a7916131
children d337a23e5536
comparison
equal deleted inserted replaced
31632:a1e92a4d99b9 31633:1e5654e2928d
184 PurpleSslConnection *purple_ssl_connect(PurpleAccount *account, const char *host, 184 PurpleSslConnection *purple_ssl_connect(PurpleAccount *account, const char *host,
185 int port, PurpleSslInputFunction func, 185 int port, PurpleSslInputFunction func,
186 PurpleSslErrorFunction error_func, 186 PurpleSslErrorFunction error_func,
187 void *data); 187 void *data);
188 188
189 /**
190 * Makes a SSL connection to the specified host and port, using the separate
191 * name to verify with the certificate. The caller should keep track of the
192 * returned value and use it to cancel the connection, if needed.
193 *
194 * @param account The account making the connection.
195 * @param host The destination host.
196 * @param port The destination port.
197 * @param func The SSL input handler function.
198 * @param error_func The SSL error handler function. This function
199 * should <strong>NOT</strong> call purple_ssl_close(). In
200 * the event of an error the #PurpleSslConnection will be
201 * destroyed for you.
202 * @param ssl_host The hostname of the other peer (to verify the CN)
203 * @param data User-defined data.
204 *
205 * @return The SSL connection handle.
206 * @since 2.6.0
207 */
208 PurpleSslConnection *purple_ssl_connect_with_ssl_cn(PurpleAccount *account, const char *host,
209 int port, PurpleSslInputFunction func,
210 PurpleSslErrorFunction error_func,
211 const char *ssl_host,
212 void *data);
213
189 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_SSLCONN_C_) 214 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_SSLCONN_C_)
190 /** 215 /**
191 * Makes a SSL connection using an already open file descriptor. 216 * Makes a SSL connection using an already open file descriptor.
192 * 217 *
193 * @deprecated Use purple_ssl_connect_with_host_fd() instead. 218 * @deprecated Use purple_ssl_connect_with_host_fd() instead.