summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2017-10-23 22:05:32 +0200
committerNiels Möller <nisse@lysator.liu.se>2017-10-23 22:05:32 +0200
commit54e1450a0ebdd24cdf6234741e5275bb3d83ebda (patch)
treebc4fc0fdb1e7fa1aa5f74a2d140326f4a68f380d /ecc-internal.h
parentb84dff15db04301e1858e0f80ca1c3bb874b88cc (diff)
downloadnettle-54e1450a0ebdd24cdf6234741e5275bb3d83ebda.tar.gz
Undo added underscores on public symbols.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index 94fc218b..4b45199f 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -73,11 +73,20 @@
#define sec_modinv _nettle_sec_modinv
#define curve25519_eh_to_x _nettle_curve25519_eh_to_x
-extern const struct ecc_curve _nettle_secp_192r1;
-extern const struct ecc_curve _nettle_secp_224r1;
-extern const struct ecc_curve _nettle_secp_256r1;
-extern const struct ecc_curve _nettle_secp_384r1;
-extern const struct ecc_curve _nettle_secp_521r1;
+/* FIXME: Rename with leading underscore, but keep current name (and
+ size!) for now, for ABI compatibility with nettle-3.1, soname
+ libhogweed.so.4. */
+#undef nettle_secp_192r1
+#undef nettle_secp_224r1
+#undef nettle_secp_256r1
+#undef nettle_secp_384r1
+#undef nettle_secp_521r1
+
+extern const struct ecc_curve nettle_secp_192r1;
+extern const struct ecc_curve nettle_secp_224r1;
+extern const struct ecc_curve nettle_secp_256r1;
+extern const struct ecc_curve nettle_secp_384r1;
+extern const struct ecc_curve nettle_secp_521r1;
/* Keep this structure internal for now. It's misnamed (since it's
really implementing the equivalent twisted Edwards curve, with