summaryrefslogtreecommitdiff
path: root/src/tls.h
diff options
context:
space:
mode:
authorJulien Dessaux2016-08-11 13:20:39 +0200
committerJulien Dessaux2016-08-11 19:46:59 +0200
commitcffeb8a3552d33e7e3de3fb6370881bfe6bcee9e (patch)
tree75552ded0d5d95770d03095065830b7b69b07087 /src/tls.h
parentInitial commit (diff)
downloadb98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.tar.gz
b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.tar.bz2
b98-cffeb8a3552d33e7e3de3fb6370881bfe6bcee9e.zip
Working bot answering PING, and its C wrapper.
Diffstat (limited to '')
-rw-r--r--src/tls.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tls.h b/src/tls.h
new file mode 100644
index 0000000..ff7998d
--- /dev/null
+++ b/src/tls.h
@@ -0,0 +1,13 @@
+#ifndef _TLS_H_
+#define _TLS_H_
+
+#include <gnutls/gnutls.h>
+
+void tls_init(void);
+int tls_connect(const char* const host, const unsigned short port);
+int tls_read(int (*input_handler_callback)(const char* const sbuf, const int len));
+void tls_send(char *buf, int len);
+void tls_close(void);
+void tls_clean(void);
+
+#endif