tls_tstream: increase the buffer size
authorMatthieu Patou <mat@matws.net>
Thu, 18 Nov 2010 07:35:06 +0000 (10:35 +0300)
committerStefan Metzmacher <metze@samba.org>
Mon, 29 Nov 2010 12:17:41 +0000 (13:17 +0100)
The problem is that with certain version of gnutls are not working
properly if the server is sending in different packet things like (at
least)

* Certificate
* Server Key exchange
* Client certificate

Somehow it really expect this to be done in one packet as some
structures used _gnutls_send_handshake are reinitialized at every
packet exchange and intermediate steps didn't expect it

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/lib/tls/tls_tstream.c

index 7f37643a659d29468ea08df8581439427c1c4f94..381d71e64abab6134309943506a1d247a2a19341 100644 (file)
@@ -50,7 +50,7 @@ struct tstream_tls {
        struct tevent_immediate *retry_im;
 
        struct {
-               uint8_t buffer[1024];
+               uint8_t buffer[4096];
                off_t ofs;
                struct iovec iov;
                struct tevent_req *subreq;