summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-08-14 08:12:09 +0000
committerDaiki Ueno <ueno@gnu.org>2020-08-14 08:12:09 +0000
commit92b78b7830be5d12cfa24673d81300ba6e851ce0 (patch)
tree673dbb03b91778eb98d28db1f8eab86a830581c3
parent606b77a2422c7e4124d80904bd191184323205fc (diff)
parenta41d84699142cf5a9962915c81b3ddf4ec875f42 (diff)
downloadgnutls-92b78b7830be5d12cfa24673d81300ba6e851ce0.tar.gz
Merge branch 'mangle-ecc_scalar_random' into 'master'
Mangle/hide GNUTLS-built ecc_scalar_random() Closes #1016 See merge request gnutls/gnutls!1300
-rwxr-xr-xdevel/import-ecc-from-nettle.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/import-ecc-from-nettle.sh b/devel/import-ecc-from-nettle.sh
index da121786dd..2ce6285d39 100755
--- a/devel/import-ecc-from-nettle.sh
+++ b/devel/import-ecc-from-nettle.sh
@@ -202,7 +202,13 @@ for f in $IMPORTS; do
;;
*/ecc-random.c )
sed \
- -e 's/"nettle-internal\.h"/"nettle-alloca.h"/' \
+ -e '/^#include "nettle-internal\.h"/ { i\
+#include "nettle-alloca.h"\
+\
+void gnutls_ecc_scalar_random(struct ecc_scalar *, void *, nettle_random_func *);
+; d
+}' \
+ -e 's/ecc_scalar_random/gnutls_ecc_scalar_random/' \
-e 's/^ & (mpn_sub_n/ \& (int)(mpn_sub_n/' \
$dst > $dst-t && mv $dst-t $dst
;;