Subject: Re: Patch to ticket 228

Re: Patch to ticket 228

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

On 21 September 2011 03:39, Alexander Lamaison <> 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.


Swish - Easy SFTP for Windows Explorer (
Received on 2011-09-21