From 95652d25d3801844609ff0a4b63872cb756e1dea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Fri, 11 Jul 2014 23:00:22 +0200
Subject: [PATCH] Made test_ecc_point non-static in testutils.c.

---
 ChangeLog             |  5 +++++
 testsuite/testutils.c |  8 +-------
 testsuite/testutils.h | 11 +++++++++++
 3 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5c02b911..9af0e57a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-07-11  Niels Möller  <nisse@lysator.liu.se>
 
+	* testsuite/testutils.c (test_ecc_point): Made non-static.
+	* testsuite/testutils.h (struct ecc_ref_point): Moved here, from
+	testutils.h.
+	(test_ecc_point): Declare it.
+
 	* ecc-dup-eh.c (ecc_dup_eh, ecc_dup_eh_itch): New file, new functions.
 	* ecc-eh-to-a.c (ecc_eh_to_a, ecc_eh_to_a_itch): New file, new
 	functions.
diff --git a/testsuite/testutils.c b/testsuite/testutils.c
index a5f67f9d..9739c9ed 100644
--- a/testsuite/testutils.c
+++ b/testsuite/testutils.c
@@ -1276,12 +1276,6 @@ test_mpn (const char *ref, const mp_limb_t *xp, mp_size_t n)
   return res;
 }
 
-struct ecc_ref_point
-{
-  const char *x;
-  const char *y;
-};
-
 void
 write_mpn (FILE *f, int base, const mp_limb_t *xp, mp_size_t n)
 {
@@ -1289,7 +1283,7 @@ write_mpn (FILE *f, int base, const mp_limb_t *xp, mp_size_t n)
   mpz_out_str (f, base, mpz_roinit_n (t,xp, n));
 }
 
-static void
+void
 test_ecc_point (const struct ecc_curve *ecc,
 		const struct ecc_ref_point *ref,
 		const mp_limb_t *p)
diff --git a/testsuite/testutils.h b/testsuite/testutils.h
index 4768f996..b2b77b16 100644
--- a/testsuite/testutils.h
+++ b/testsuite/testutils.h
@@ -224,6 +224,17 @@ test_dsa_key(const struct dsa_params *params,
 
 extern const struct ecc_curve * const ecc_curves[];
 
+struct ecc_ref_point
+{
+  const char *x;
+  const char *y;
+};
+
+void
+test_ecc_point (const struct ecc_curve *ecc,
+		const struct ecc_ref_point *ref,
+		const mp_limb_t *p);
+
 void
 test_ecc_mul_a (unsigned curve, unsigned n, const mp_limb_t *p);
 
-- 
GitLab