diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-02-18 17:48:04 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-02-18 17:48:04 +0000 |
commit | 0fd8559c4a6ad84ad0852e07c4ba2e50b2fdf0ad (patch) | |
tree | 6a1c98dae9b34dc4709274067d3bc7977d43ad32 /lib/ssl_client.h | |
parent | 8de63c3fdfb532e85f7d93778e63032f7c84b631 (diff) | |
parent | c7d0f415e0bed09decce7a0503dce2274c9d94d9 (diff) |
Merging new Jabber module. See the massive changelog for all the cool
improvements. :-)
Diffstat (limited to 'lib/ssl_client.h')
-rw-r--r-- | lib/ssl_client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssl_client.h b/lib/ssl_client.h index 964caee4..dcbf9a01 100644 --- a/lib/ssl_client.h +++ b/lib/ssl_client.h @@ -51,6 +51,10 @@ typedef gboolean (*ssl_input_function)(gpointer, void*, b_input_condition); blocking I/O! (Except for the DNS lookups, for now...) */ G_MODULE_EXPORT void *ssl_connect( char *host, int port, ssl_input_function func, gpointer data ); +/* Start an SSL session on an existing fd. Useful for STARTTLS functionality, + for example in Jabber. */ +G_MODULE_EXPORT void *ssl_starttls( int fd, ssl_input_function func, gpointer data ); + /* Obviously you need special read/write functions to read data. */ G_MODULE_EXPORT int ssl_read( void *conn, char *buf, int len ); G_MODULE_EXPORT int ssl_write( void *conn, const char *buf, int len ); |