[PULL][PATCH] Small buffering fixes, start of recv side cleanup
Jonathan Bastien-Filiatrault
joe at x2a.org
Fri Aug 27 04:09:54 CEST 2010
Greetings,
I have started work again on DTLS. This needs preparation on the read
side in order to be able to receive datagrams in whole chunks at once.
The first 5 commits include fixes and documentation for every function.
The last 3 are the actual changes on the read side. The diffstat would
be negative if the documentation was not added.
The following changes since commit ed3ae748ba6ee8b82e590f6d51d4b8473430c6de:
prevent a memory leak in the unique_id functions. (2010-08-20
19:41:34 +0200)
are available in the git repository at:
git://github.com/jothan/gnutls.git recv-mbuffers
Jonathan Bastien-Filiatrault (8):
mbuffers: Document the internal mbuffer API.
mbuffers: Make _mbuffer_remove_bytes return a meaningful error code.
mbuffers: fix wrong size calculation.
mbuffers: Add mbuffer_linearize.
Parenthesize size calculations.
mbuffers: make _gnutls_io_read_buffered use mbuffers.
mbuffers: Add _mbuffer_xfree operation.
Fully mbufferize _gnutls_read and _gnutls_read_buffered.
lib/gnutls_buffers.c | 124
+++++++++++++++++++++-------------------------
lib/gnutls_buffers.h | 5 +-
lib/gnutls_int.h | 6 +-
lib/gnutls_mbuffers.c | 131
++++++++++++++++++++++++++++++++++++++++++++++++-
lib/gnutls_mbuffers.h | 18 ++++++-
lib/gnutls_record.c | 30 ++++++++---
lib/gnutls_state.c | 16 +-----
7 files changed, 231 insertions(+), 99 deletions(-)
Happy hacking,
Jonathan
More information about the Gnutls-devel
mailing list