tls_tstream: use a dynamic buffer for the push case
authorStefan Metzmacher <metze@samba.org>
Mon, 29 Nov 2010 11:27:11 +0000 (12:27 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 29 Nov 2010 12:17:42 +0000 (13:17 +0100)
commita051005679b0e64c453ffd995a4b370763ee891e
treeb7cdb437d7ba347c5555538b578979fb0bbcfcc8
parent2ba89b40b234abc941c3b4b57f13bfa5b0ebdd9c
tls_tstream: use a dynamic buffer for the push case

Some versions of gnutls doesn't handle EAGAIN correctly,
so we better allow sending buffers without a low size limitation,
the limit is now UINT16_MAX (0xFFFF) and we allocate the buffer
with talloc each time.

metze
source4/lib/tls/tls_tstream.c