summaryrefslogtreecommitdiff
path: root/lib/gnutls_buffers.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-06 15:48:55 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-06 16:14:59 +0200
commita354ff4541527381c40dfb726c9315d3ecaaa55f (patch)
treeaf2ee4a6d9e8167722044f759fc36dd6be698077 /lib/gnutls_buffers.h
parentbcfd21f27e3b90ec58451912797aba61f8ab3a5a (diff)
downloadgnutls-a354ff4541527381c40dfb726c9315d3ecaaa55f.tar.gz
Added gnutls_record_recv_packet() and gnutls_packet_deinit()
These functions allow for a faster variant of gnutls_record_recv(), i.e., a variant that eliminates the data memcpy().
Diffstat (limited to 'lib/gnutls_buffers.h')
-rw-r--r--lib/gnutls_buffers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gnutls_buffers.h b/lib/gnutls_buffers.h
index 9846b26686..4e98168e68 100644
--- a/lib/gnutls_buffers.h
+++ b/lib/gnutls_buffers.h
@@ -52,6 +52,9 @@ inline static size_t record_check_unprocessed(gnutls_session_t session)
int _gnutls_record_buffer_get(content_type_t type,
gnutls_session_t session, uint8_t * data,
size_t length, uint8_t seq[8]);
+int _gnutls_record_buffer_get_packet(content_type_t type,
+ gnutls_session_t session,
+ gnutls_packet_st *packet);
ssize_t _gnutls_io_read_buffered(gnutls_session_t, size_t n,
content_type_t, unsigned int *ms);
int _gnutls_io_clear_peeked_data(gnutls_session_t session);