diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-06 15:48:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-06-06 16:14:59 +0200 |
commit | a354ff4541527381c40dfb726c9315d3ecaaa55f (patch) | |
tree | af2ee4a6d9e8167722044f759fc36dd6be698077 /lib/gnutls_buffers.h | |
parent | bcfd21f27e3b90ec58451912797aba61f8ab3a5a (diff) | |
download | gnutls-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.h | 3 |
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); |