cURL / Mailing Lists / curl-library / Single Mail


Re: SBUF_SIZE in ftp.c too small

From: Daniel Stenberg <>
Date: Wed, 21 Jan 2009 09:53:38 +0100 (CET)

On Tue, 20 Jan 2009, Markus Moeller wrote:

> I wanted to use the GSSAPI auth option of ftp and noticed it doesn't work
> with Active Directory as Kerberos key distribution centre because the ticket
> is much bigger than 1024 bytes after base64 encoding. Can it be set to
> /* may still not be big enough for some krb5 tokens */
> #define SBUF_SIZE 1024

I think a 16K buffer is a tad bit much to use on the stack, so I would then
prefer some kind of allocated buffer for such a thing. The fact that
everything else works fine with 1K today hints that larger buffers are rarely

I wonder if perhaps the ->uploadbuffer struct member couldn't be re-used for
this purpose...

Received on 2009-01-21