diff libpurple/sslconn.h @ 17558:988102692e39

Fixed one of the issues in the ssl stuff, allowing CN cert checks for starttls-connections in XMPP.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 05 Jun 2007 15:18:30 +0000
parents 2d2c72f70e8c
children f41a561e3b7b
line wrap: on
line diff
--- a/libpurple/sslconn.h	Sun Jun 03 23:28:04 2007 +0000
+++ b/libpurple/sslconn.h	Tue Jun 05 15:18:30 2007 +0000
@@ -154,6 +154,7 @@
 
 /**
  * Makes a SSL connection using an already open file descriptor.
+ * DEPRECATED. Use purple_ssl_connect_with_host_fd instead.
  *
  * @param account    The account making the connection.
  * @param fd         The file descriptor.
@@ -166,7 +167,25 @@
 PurpleSslConnection *purple_ssl_connect_fd(PurpleAccount *account, int fd,
 									   PurpleSslInputFunction func,
 									   PurpleSslErrorFunction error_func,
-									   void *data);
+ 									   void *data);
+
+/**
+  * Makes a SSL connection using an already open file descriptor.
+  *
+  * @param account    The account making the connection.
+  * @param fd         The file descriptor.
+  * @param func       The SSL input handler function.
+  * @param error_func The SSL error handler function.
+  * @param host       The hostname of the other peer (to verify the CN)
+  * @param data       User-defined data.
+  *
+  * @return The SSL connection handle.
+  */
+PurpleSslConnection *purple_ssl_connect_with_host_fd(PurpleAccount *account, int fd,
+                                           PurpleSslInputFunction func,
+                                           PurpleSslErrorFunction error_func,
+                                           const char *host,
+                                           void *data);
 
 /**
  * Adds an input watcher for the specified SSL connection.