gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL][PATCH] Small buffering fixes, start of recv side cleanup


From: Jonathan Bastien-Filiatrault
Subject: [PULL][PATCH] Small buffering fixes, start of recv side cleanup
Date: Thu, 26 Aug 2010 22:09:54 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]