Comments (10)
Is that what ldd shows? If so, you need to make sure it picks the right libs at run-time, so it depends on your /etc/ld.so.conf setup. And you can also specify dir with LD_LIBRARY_PATH
from libssh2.
it wasn't a runtime link problem because that soname was the system version of openssl which was not binary compatible with the one I wanted it to use. When I added an additional line forcing it to give a directory path to the linker it then was able to find the correct library.
I'm still not quite sure why this was happening nor why I had to go out of my way to be explicit. I already HAD the runtime AND compile time environmental variables set, and it was defaulting to the system path library anyway.
from libssh2.
It looks like "configure" is not honouring the "--with-libssl-prefix" argument:
./configure --prefix="/opt/libssh2-1.6.0" --with-openssl --with-libssl-prefix=/opt/openssl-1.0.2d
Gives me:
....
configure: error: No crypto library found!
Try --with-libssl-prefix=PATH
or --with-libgcrypt-prefix=PATH
or --with-wincng on Windows
Despite:
$ ls /opt/openssl-1.0.2d/{bin,lib}
/opt/openssl-1.0.2d/bin:
c_rehash* openssl*
/opt/openssl-1.0.2d/lib:
engines/ lib64@ libcrypto.a libcrypto.so@ libcrypto.so.1.0.0* libssl.a libssl.so@ libssl.so.1.0.0* pkgconfig/
However, the following works:
CPPFLAGS="-I/opt/openssl-1.0.2d/include" LDFLAGS="-L/opt/openssl-1.0.2d/lib" ./configure --prefix="/opt/libssh2-1.6.0" --with-openssl --with-libssl-prefix=/opt/openssl-1.0.2d
from libssh2.
Hi
I'm trying to compile with openssl git, but it returns the following error:
openssl.c: In function β_libssh2_rsa_newβ:
openssl.c:71:11: error: dereferencing pointer to incomplete type βRSA {aka struct rsa_st}β
from libssh2.
@superbem that's separate from this issue though, and I'd say most probably because OpenSSL has broken their API (which they've done a lot in their 1.1.x branch).
from libssh2.
Changes between 1.0.2g and 1.1.0 [xx XXX xxxx]
*) Made RSA and RSA_METHOD opaque. The structures for managing RSA
objects have been moved out of the public header files. New
functions for managing these have been added.
[Richard Levitte]
*) Made DSA and DSA_METHOD opaque. The structures for managing DSA objects
have been moved out of the public header files. New functions for managing
these have been added.
[Matt Caswell]
from libssh2.
so I was right...
from libssh2.
Is there somewhere a libssh2 ready for openssl 1.1.0?
from libssh2.
As soon as we get the patches that adapt and have them merged. Feel free help us making this happen. But please, stop using this issue for that topic.
from libssh2.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from libssh2.
Related Issues (20)
- Add support for "strict KEX" protocol extension HOT 1
- Release request (terrapin) HOT 1
- Make a new release to include fix for CVE-2023-48795 HOT 1
- libssh2 1.11.1 release? (with CVE-2023-48795 fix)
- Encryption failure during handshake when using libssh2 and wolfssl HOT 7
- How can I get more descriptive error messages?
- ssh from docker container on arm64 macos ventura to same mac (docker host) fails, ERROR: SSH handshake failed. HOT 1
- (question) when is the terrapin fix going to be released? HOT 1
- libssh2 in PHP: how can I check the supported ciphers and mac algorithms HOT 1
- compilation error with cmake, without passing -DENABLE_ZLIB_COMPRESSION=ON HOT 2
- Unused code setting channel ignore mode HOT 3
- After running this code, the memory usage continuously spikes. What could be the reason? libssh2-1.10.0 HOT 9
- KEX extension indicators are lost in libssh2_session_method_pref() HOT 3
- libssh2 tests are failing HOT 1
- Encrypt-then-MAC feature should be tested in remote end's configuration when receiving data
- Fix AIX build HOT 1
- SFTP failed with the error -41 working with Openssl HOT 9
- libssh2_session_handshake() hangs HOT 3
- libssh2_session_handshake LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE HOT 6
- Key exchange issue on Debian 12 (Bookworm) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libssh2.