Leo in gmane.network.ssh.libssh2.devel (Thu, 8 Aug 2019 22:43:51 -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(). > >Hi Peter, > >I finally can get back to this issue after spending lengthy time on >implementing Apple's notarization in my apps. > >I followed your instructions and built libssh2 with --enable-debug. > >Now when I try to connect to SFTP site, the crash produces the following >output in Xcode debugger: > >openssl.c > _libssh2_openssl_crypto_init() > > >#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ > ?????? !defined(LIBRESSL_VERSION_NUMBER) > ?????? #ifndef OPENSSL_NO_ENGINE > ?????????????? > ENGINE_load_builtin_engines();?????????????????????????????????? <-- Thread > 8: >EXC_BAD_ACCESS (code=1, address=0x116) > ?????????????? ENGINE_register_all_complete(); > ?????? #endif
libssh2 version 1.8.0 needs a patch to compile with OpenSSL 1.1.1. See https://github.com/Frugghi/iSSH2/issues/7 and the patch in https://github.com/Jan-E/iSSH2/commit/6b2b61d56fc43642980aacc529c9d9d14263cebf#diff-47bf3a78aa165576c6c85a942ddf572bR6 You'd better upgradeto libssh2 1.9.0. It compiles fine in Xcode. https://github.com/Frugghi/iSSH2 will create the necessary binaries for Xcode. -- Jan _______________________________________________ libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel