<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/robUx4">Steve Lhomme</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1016">#1016</a>:
</p>
<div></div>
<p dir="auto">The <code>import-ecc-from-nettle.sh</code> script mangles internal functions listed in <code>ecc-internal.h</code> by patching the original <code>ecc-internal.h</code>. But unlike other internal functions listed there, <code>ecc_scalar_random</code> is not in there and thus not mangled.</p>
<p dir="auto">That leads to link errors in GnuTLS 3.16.4 where linking with nettle and gnutls result in a duplicated <code>nettle_ecc_scalar_random</code> which is the public name of the file.</p>
<p dir="auto">Either <code>ecc-random.c</code> should not be imported from the nettle source to avoid duplicates (but <code>ecc_mod_random</code> from that file is used), or the name used in GnuTLS should be mangled. It can be mangled in <code>ecc-internal.h</code> as it's included after <code><nettle/ecc.h></code> which defines the public name.</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1016">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/f2a5edd4ab1a804d1b237c2e0d6be323/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1016"}}</script>


</p>
</div>
</body>
</html>