aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/ssl_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-13 17:18:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-13 17:31:29 +0100
commit5d46e29fcac899483e6b2f3d0790e4c8915411c7 (patch)
tree5c8266c417a7cdcdf6b80fd6f348eb7b59ad38fe /src/libutil/ssl_util.h
parentd07fb53df082a1008d90891cd00fe08579acbeb7 (diff)
downloadrspamd-5d46e29fcac899483e6b2f3d0790e4c8915411c7.tar.gz
rspamd-5d46e29fcac899483e6b2f3d0790e4c8915411c7.zip
{Feature] Implement SSL IO
Diffstat (limited to 'src/libutil/ssl_util.h')
-rw-r--r--src/libutil/ssl_util.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/libutil/ssl_util.h b/src/libutil/ssl_util.h
index 719c8ffd1..64e6a413e 100644
--- a/src/libutil/ssl_util.h
+++ b/src/libutil/ssl_util.h
@@ -49,6 +49,38 @@ gboolean rspamd_ssl_connect_fd (struct rspamd_ssl_connection *conn, gint fd,
gpointer handler_data);
/**
+ * Perform async read from SSL socket
+ * @param conn
+ * @param buf
+ * @param buflen
+ * @return
+ */
+gssize rspamd_ssl_read (struct rspamd_ssl_connection *conn, gpointer buf,
+ gsize buflen);
+
+/**
+ * Perform async write to ssl buffer
+ * @param conn
+ * @param buf
+ * @param buflen
+ * @param ev
+ * @param tv
+ * @return
+ */
+gssize rspamd_ssl_write (struct rspamd_ssl_connection *conn, gconstpointer buf,
+ gsize buflen);
+
+/**
+ * Emulate writev by copying iovec to a temporary buffer
+ * @param conn
+ * @param buf
+ * @param buflen
+ * @return
+ */
+gssize rspamd_ssl_writev (struct rspamd_ssl_connection *conn, struct iovec *iov,
+ gsize iovlen);
+
+/**
* Removes connection data
* @param conn
*/