Subject: Re: libssh crash on Mac

Re: libssh crash on Mac

From: Leo <leo.r_at_rogers.com>
Date: Fri, 10 May 2019 06:12:03 -0400

On 5/4/19 6:58 PM, Peter Stuge wrote:
> Leo wrote:
>> I finally was able to compile the Xcode app with libssh2 1.8.0 using
>> libssh2.a library.
> That's good progress. Please build libssh2 with debug
> (--enable-debug if using ./configure) and then add this line:
>
> libssh2_trace(session, ~0);
>
> after the call to libssh2_session_init() but before the call to
> libssh2_session_handshake().

Thanks Peter, will try and report back.

>> But the app still crashes on attempt to connect to any SFTP server.
> Have you checked that the session is initialized successfully?
> Very basic error checking?
>
Yes, the app checks if the session exists after libssh2_session_init()

Leo

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2019-05-10