[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libssh without OpenSSL
[Thread Prev] | [Thread Next]
- Subject: Re: libssh without OpenSSL
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 14 Apr 2014 09:59:50 +0200
- To: libssh@xxxxxxxxxx
On Saturday 12 April 2014 08:40:57 Alan Dunn wrote:
> Hi Zvika,
>
> On Sat, Apr 12, 2014 at 2:18 AM, Zvi Vered <veredz72@xxxxxxxxx> wrote:
> > 1. Is it possible to build libssh that will not need OpenSSL (downloaded
> > from www.openssl.org) ?
>
> Yes, you can use libgcrypt instead of libcrypto (which is the OpenSSL
> support that libssh requires). You can do this with cmake option
> -DWITH_GCRYPT:BOOL=ON . You will need libgcrypt or libcrypto though.
> With libgcrypt some libssh features are not supported (e.g. ECDSA host
> keys), but I believe most are.
>
> > 2. Is it possible to configure cmake to build libssh.a (and not dynamic
> > libraries) ?
>
> It is possible to build a static libssh (libssh.a), but I think it is
> not possible to solely build a static libssh with the current cmake
> files (barring some general-purpose cmake commands for this situation
> that I don't know). However, I think it would not take too much
> modification to the cmake files to accomplish what you want; just look
> for everything with ${LIBSSH_SHARED_LIBRARY}.
You for a static libssh you can simply set -DWITH_STATIC_LIB=ON. And you
should set -DGCRYPT_LIBRARY=/absolute/path/to/libgcrypt.a.
-- andreas
--
Andreas Schneider GPG-ID: CC014E3D
www.cryptomilk.org asn@xxxxxxxxxxxxxx
| libssh without OpenSSL | "Zvi Vered" <veredz72@xxxxxxxxx> |
| Re: libssh without OpenSSL | Alan Dunn <amdunn@xxxxxxxxx> |