add-wss-ssl-openssl-support.patch
Signed-off-by: Andy Green <andy@warmcat.com>
diff --git a/libwebsockets-api-doc.html b/libwebsockets-api-doc.html
index a75ddb2..0c2d8eb 100644
--- a/libwebsockets-api-doc.html
+++ b/libwebsockets-api-doc.html
@@ -4,7 +4,11 @@
(<i>int</i> <b>port</b>,
<i>int (*</i><b>callback</b>) <i>(struct libwebsocket *, enum libwebsocket_callback_reasons, void *, void *, size_t)</i>,
<i>int</i> <b>protocol</b>,
-<i>size_t</i> <b>user_area_size</b>)
+<i>size_t</i> <b>user_area_size</b>,
+<i>const char *</i> <b>ssl_cert_filepath</b>,
+<i>const char *</i> <b>ssl_private_key_filepath</b>,
+<i>int</i> <b>gid</b>,
+<i>int</i> <b>uid</b>)
<h3>Arguments</h3>
<dl>
<dt><b>port</b>
@@ -18,6 +22,17 @@
which will be used by the user application to store
per-session data. A pointer to this space is given
when the user callback is called.
+<dt><b>ssl_cert_filepath</b>
+<dd>If libwebsockets was compiled to use ssl, and you want
+to listen using SSL, set to the filepath to fetch the
+server cert from, otherwise NULL for unencrypted
+<dt><b>ssl_private_key_filepath</b>
+<dd>filepath to private key if wanting SSL mode,
+else ignored
+<dt><b>gid</b>
+<dd>group id to change to after setting listen socket, or -1.
+<dt><b>uid</b>
+<dd>user id to change to after setting listen socket, or -1.
</dl>
<h3>Description</h3>
<blockquote>