[gnutls-devel] GnuTLS | ecc_scalar_random in nettle is public but not mangled in GnuTLS (#1016)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Jun 4 17:00:06 CEST 2020



Steve Lhomme created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1016



The `import-ecc-from-nettle.sh` script mangles internal functions listed in `ecc-internal.h` by patching the original `ecc-internal.h`. But unlike other internal functions listed there, `ecc_scalar_random` is not in there and thus not mangled.

That leads to link errors in GnuTLS 3.16.4 where linking with nettle and gnutls result in a duplicated `nettle_ecc_scalar_random` which is the public name of the file.

Either `ecc-random.c` should not be imported from the nettle source to avoid duplicates (but `ecc_mod_random` from that file is used), or the name used in GnuTLS should be mangled. It can be mangled in `ecc-internal.h` as it's included after `<nettle/ecc.h>` which defines the public name.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1016
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200604/bc5c542d/attachment-0001.html>


More information about the Gnutls-devel mailing list