Setting gnutls to use nettle instead of libgcrypt

Totony totony123 at gmail.com
Sat Jul 30 03:18:58 CEST 2011


Oops, I said "nettle is linked to gnutls", but I meant "gnutls is linked to
nettle".

root: ldd /usr/lib/libgnutls.so
    linux-vdso.so.1 =>  (0x00007fff95fff000)
    libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007ff8dc78b000)
    libnettle.so.4 => /usr/lib/libnettle.so.4 (0x00007ff8dc568000)
    libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007ff8dc2fb000)
    libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0x00007ff8dc0e9000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007ff8dbed1000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007ff8dbccc000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff8dbaaf000)
    libc.so.6 => /lib/libc.so.6 (0x00007ff8db74e000)
    /lib/ld-linux-x86-64.so.2 (0x00007ff8dcc74000)


root: ldd /usr/bin/aria2
    linux-vdso.so.1 =>  (0x00007fffbe1ff000)
    librt.so.1 => /lib/librt.so.1 (0x00007ff5b7c9a000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007ff5b7a82000)
    libcares.so.2 => /usr/lib/libcares.so.2 (0x00007ff5b7873000)
->libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007ff5b75f6000)
->libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007ff5b7334000)
    libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007ff5b7095000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007ff5b6d42000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff5b6a38000)
    libm.so.6 => /lib/libm.so.6 (0x00007ff5b67b6000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007ff5b65a0000)
    libc.so.6 => /lib/libc.so.6 (0x00007ff5b623f000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff5b6022000)
    libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007ff5b5e1f000)
    libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007ff5b5c0f000)
    libnettle.so.4 => /usr/lib/libnettle.so.4 (0x00007ff5b59ec000)
    libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007ff5b5780000)
    libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0x00007ff5b556e000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007ff5b536a000)
    /lib/ld-linux-x86-64.so.2 (0x00007ff5b7ea2000)


So, gnutls have no reason to use libgcrypt ? (Even if the program that uses
gnutls link libgcrypt ?)
I think I will fill a bug report to the package (it's not normal that aria2
is linked to libgcrypt if it uses gnutls, is it ?).


2011/7/29 Brad Hards <bradh at frogmouth.net>

> On Saturday 30 July 2011 10:52:45 Totony wrote:
> > I'm using gnutls version 2.12.7-2 and nettle version 2.1-1
> That -2 and -1 thing is a packaging thing, so its possible that your distro
> is
> applying patches. The backend depends on how gnutls was built - I don't
> think
> you can change it at runtime.
>
> > Actually, nettle is linked to gnutls, so I think gnutls is using nettle,
> Really? Can you show what
> ldd /usr/lib/libnettle.so
> (or whatever nettle library path) outputs?
>
> > through the program I'm using looks to be using libgcrypt (because it's
> > linked to libgcrypt), but the help forums of that program seems to say
> > they're using the crypto of gnutls. Quite complicated situation >.>
> > (That program is aria2).
> Perhaps you need to ask aria2 developers.
>
> > Do you know how I can know which crypto backend gnutls is using ?
> What does ldd on the gnutls libraries show?
>
> Brad
>
> _______________________________________________
> Help-gnutls mailing list
> Help-gnutls at gnu.org
> https://lists.gnu.org/mailman/listinfo/help-gnutls
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110729/d2048816/attachment.htm>


More information about the Gnutls-help mailing list