From 47ea46b8c0c7dcd270fe2d87577edfdacd5cc668 Mon Sep 17 00:00:00 2001
From: Marcus Comstedt <marcus@mc.pp.se>
Date: Mon, 1 Jul 2019 13:34:15 +0200
Subject: [PATCH] Nettle: Fix typo in previous commit

---
 src/post_modules/Nettle/hogweed.cmod | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/post_modules/Nettle/hogweed.cmod b/src/post_modules/Nettle/hogweed.cmod
index e9231090eb..fd94bf6150 100644
--- a/src/post_modules/Nettle/hogweed.cmod
+++ b/src/post_modules/Nettle/hogweed.cmod
@@ -340,19 +340,29 @@ program_flags PROGRAM_CLEAR_STORAGE;
 #define SECP521R1 4
 
 #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_192R1
-static const struct ecc_curve *nettle_get_secp_192r1(void) { return nettle_secp_192r1; }
+static const struct ecc_curve *nettle_get_secp_192r1(void) {
+  return &nettle_secp_192r1;
+}
 #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_192R1 */
 #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_224R1
-static const struct ecc_curve *nettle_get_secp_224r1(void) { return nettle_secp_224r1; }
+static const struct ecc_curve *nettle_get_secp_224r1(void) {
+  return &nettle_secp_224r1;
+}
 #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_224R1 */
 #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_256R1
-static const struct ecc_curve *nettle_get_secp_256r1(void) { return nettle_secp_256r1; }
+static const struct ecc_curve *nettle_get_secp_256r1(void) {
+  return &nettle_secp_256r1;
+}
 #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_256R1 */
 #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_384R1
-static const struct ecc_curve *nettle_get_secp_384r1(void) { return nettle_secp_384r1; }
+static const struct ecc_curve *nettle_get_secp_384r1(void) {
+  return &nettle_secp_384r1;
+}
 #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_384R1 */
 #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_521R1
-static const struct ecc_curve *nettle_get_secp_521r1(void) { return nettle_secp_521r1; }
+static const struct ecc_curve *nettle_get_secp_521r1(void) {
+  return &nettle_secp_521r1;
+}
 #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_521R1 */
 
 #ifndef ecc_point_equal_p
-- 
GitLab