summaryrefslogtreecommitdiffstats
path: root/lib/system/ktls.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/ktls.h')
-rw-r--r--lib/system/ktls.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/system/ktls.h b/lib/system/ktls.h
new file mode 100644
index 0000000..8a98a8e
--- /dev/null
+++ b/lib/system/ktls.h
@@ -0,0 +1,18 @@
+#ifndef GNUTLS_LIB_ACCELERATED_KTLS_H
+#define GNUTLS_LIB_ACCELERATED_KTLS_H
+
+#include "gnutls_int.h"
+
+void _gnutls_ktls_enable(gnutls_session_t session);
+int _gnutls_ktls_set_keys(gnutls_session_t session);
+ssize_t _gnutls_ktls_send_file(gnutls_session_t session, int fd,
+ off_t *offset, size_t count);
+int _gnutls_ktls_send_control_msg(gnutls_session_t session, unsigned char record_type,
+ const void *data, size_t data_size);
+#define _gnutls_ktls_send(x, y, z) _gnutls_ktls_send_control_msg(x, GNUTLS_APPLICATION_DATA, y, z);
+int _gnutls_ktls_recv_control_msg(gnutls_session_t session, unsigned char *record_type,
+ void *data, size_t data_size);
+int _gnutls_ktls_recv_int(gnutls_session_t session, content_type_t type, void *data, size_t data_size);
+#define _gnutls_ktls_recv(x, y, z) _gnutls_ktls_recv_int(x, GNUTLS_APPLICATION_DATA, y, z)
+
+#endif /* GNUTLS_LIB_ACCELERATED_KTLS_H */