summaryrefslogtreecommitdiff
path: root/lib/includes
diff options
context:
space:
mode:
authorFrantisek Krenzelok <krenzelok.frantisek@gmail.com>2021-11-16 12:05:53 +0100
committerFrantisek Krenzelok <krenzelok.frantisek@gmail.com>2022-02-22 20:18:44 +0100
commit617f71e2e354eb391b27878c22109191f8262921 (patch)
tree78d80db302df46875d930e6677ebc66925060561 /lib/includes
parentad20dfc64d9c55129c36fa13f3ee2f93951d7bbf (diff)
downloadgnutls-617f71e2e354eb391b27878c22109191f8262921.tar.gz
ktls: sendfile
added API function: gnutls_record_send_file(). added: _gnutls_ktls_send_file() function which increases the performance by offloading the file encryption to kernel, thus the data never goes to userspace. updated tests/gnutls_ktls to cover new API Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Diffstat (limited to 'lib/includes')
-rw-r--r--lib/includes/gnutls/gnutls.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index 482e9653c8..7dac7b7054 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -1519,6 +1519,8 @@ ssize_t gnutls_record_send2(gnutls_session_t session, const void *data,
ssize_t gnutls_record_send_range(gnutls_session_t session,
const void *data, size_t data_size,
const gnutls_range_st * range);
+ssize_t gnutls_record_send_file(gnutls_session_t session, int fd,
+ off_t *offset, size_t count);
ssize_t gnutls_record_recv(gnutls_session_t session, void *data,
size_t data_size);