cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Patch to use GSSAPI authentication for socks5 connection

From: Markus Moeller <huaraz_at_moeller.plus.com>
Date: Wed, 24 Sep 2008 22:38:14 +0100

Thank you for commenting. I will update as soon as I find some time.

Markus

"Daniel Stenberg" <daniel_at_haxx.se> wrote in message
news:alpine.LRH.1.10.0809231315070.28153_at_yvahk3.pbagnpgbe.fr...
> On Sun, 14 Sep 2008, Markus Moeller wrote:
>
>> Find attached a patch that allows socks connections with GSSAPI
>> authentication to the socks proxy.
>
> Thanks! I've cc'ed my reply to the curl-library list which seems more
> suitable for further discussions about this patch.
>
> My comments on the patch:
>
> o I can't comment on the actual function as I have no GSS-capable socks
> proxy
> to test against nor have I checked out it is supposed to work. I just
> take
> your word that it works!
>
> o It doesn't follow the curl coding style: too long lines, different
> indent
> level etc.
>
> o The check_sspi_err() function should be static and has the open brace
> positioned like we don't do in curl code, but most importantly it is
> very
> repeatitive with many almost identical lines. Clearly that can be
> written
> nicer, which for example only one failf() call using a name pointer set
> by the switch(), or possibly the names could just be in an array that
> you
> lookup using the 'major_status' variable or similar.
>
> o I think 65600 bytes is a tad bit much to allocate on the stack and
> would
> rather see such a large chunk be allocated and thus subsequently freed.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
Received on 2008-09-24