Subject: Re: How do I identify crypto library linked with libssh2.so

Re: How do I identify crypto library linked with libssh2.so

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Thu, 12 Jul 2012 14:46:23 +0200

tor 2012-07-12 klockan 17:38 +0530 skrev Akshay Joshi:

> How do I identify which crypto (libcrypto or libgcrypt) library is
> linked with libssh2.so?

ldd /path/to/libssh2.so should work on most UNIX like systems.

There is currently no libssh2 API call that tells you which crypto
library it's built with. But you can probe and guess by trying to load
an encrypted key file. If successful then it's most likely OpenSSL
libcrypto.

Regards
Henrik

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-07-12