From 380cae654b1c77aa03703dfe73e155ed82fc9935 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Thu, 18 Nov 2010 10:35:06 +0300 Subject: [PATCH] tstream: increase the buffer size 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 --- source4/lib/tls/tls_tstream.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source4/lib/tls/tls_tstream.c b/source4/lib/tls/tls_tstream.c index 7f37643..381d71e 100644 --- a/source4/lib/tls/tls_tstream.c +++ b/source4/lib/tls/tls_tstream.c @@ -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; -- 1.7.1