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>
Sat, 4 Dec 2010 11:12:21 +0000 (12:12 +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 8e80454d57a8f59e6226e71bd6194d8bb77665f3..4086fd96a555305af09669836cb4fbc94fddd1b6 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;