summaryrefslogtreecommitdiff
path: root/devel/import-ecc-from-nettle.sh
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-09-03 14:16:08 +0000
committerDaiki Ueno <ueno@gnu.org>2020-09-03 14:16:08 +0000
commit999525211e1a5a22194411a4b078259137f5fe19 (patch)
tree3927532d2baa80554b30d4d446d5250868f988a2 /devel/import-ecc-from-nettle.sh
parent3c137c9f2888334596fb9f4313d4389d39afe8fd (diff)
parentb0be5d7c39d4a5f7d29db4630926a4cef7c3edce (diff)
downloadgnutls-999525211e1a5a22194411a4b078259137f5fe19.tar.gz
Merge branch 'tmp-backport-3.6' into 'gnutls_3_6_x'
Backport bug fixes from master to gnutls_3_6_x See merge request gnutls/gnutls!1317
Diffstat (limited to 'devel/import-ecc-from-nettle.sh')
-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
;;