Subject: Re: Patch to ticket 228

Re: Patch to ticket 228

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Wed, 21 Sep 2011 03:51:33 +0100

On 21 September 2011 03:39, Alexander Lamaison <swish_at_lammy.co.uk> wrote:
> Therefore, my suggestion would be that
> libssh2_supported_algs allocate the array itself and return the size
> of the array.  This removes all the guesswork as the library knows
> exactly how big this array needs to be.  Then the user just needs to
> call LIBSSH2_FREE on the output pointer when they are finished with
> it.

Sorry. This, of course, should be libssh2_free, not LIBSSH2_FREE which
takes a session pointer. That may be reason enough to pass a session
pointer to the new API function.

Alex

--
Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org)
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-09-21