diff options
author | Niels Möller <nisse@lysator.liu.se> | 2017-11-08 22:48:53 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2017-11-08 22:48:53 +0100 |
commit | c2e9233e8fb64721d4a5d6d41f293e894f6cef08 (patch) | |
tree | df24058c0752cf4489c2eeb6bc4581c621a33b8b /ecc-curve.h | |
parent | ad5a8e3e38d3a3f88f72852330d7f0e6e9975e87 (diff) | |
download | nettle-c2e9233e8fb64721d4a5d6d41f293e894f6cef08.tar.gz |
Revert change hiding nettle_secp_256r1 and friends.api-opaque-fix
Diffstat (limited to 'ecc-curve.h')
-rw-r--r-- | ecc-curve.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ecc-curve.h b/ecc-curve.h index f3fd63e4..c08479ab 100644 --- a/ecc-curve.h +++ b/ecc-curve.h @@ -41,6 +41,15 @@ extern "C" { /* The contents of this struct is internal. */ struct ecc_curve; +/* FIXME: Rename with leading underscore. Due to ABI subtleties, + applications should not refer to these directly, but use the below + accessor functions. */ +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; + #ifdef __GNUC__ #define NETTLE_PURE __attribute__((pure)) #else @@ -55,13 +64,6 @@ const struct ecc_curve * NETTLE_PURE nettle_get_secp_521r1(void); #undef NETTLE_PURE -/* For backwards compatibility */ -#define nettle_secp_192r1 (*nettle_get_secp_192r1()) -#define nettle_secp_224r1 (*nettle_get_secp_224r1()) -#define nettle_secp_256r1 (*nettle_get_secp_256r1()) -#define nettle_secp_384r1 (*nettle_get_secp_384r1()) -#define nettle_secp_521r1 (*nettle_get_secp_521r1()) - #ifdef __cplusplus } #endif |