summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2018-08-09 22:00:03 +0200
committerNiels Möller <nisse@lysator.liu.se>2018-08-09 22:00:03 +0200
commitf7e49547ea000c9d1fc47ccf78adcede88bbc16b (patch)
tree34db0cf1826980f61a05852bd3a124c5538d84f8
parent6a19845e6f71791ca98765d490ec08e776494bee (diff)
downloadnettle-attribute-deprecated.tar.gz
Mark obsolete helpers _rsa_blind and _rsa_unblind as deprecated.attribute-deprecated
-rw-r--r--ChangeLog3
-rw-r--r--rsa-internal.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8fa99a47..83e96789 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2018-08-09 Niels Möller <nisse@lysator.liu.se>
+ * rsa-internal.h (_rsa_blind, _rsa_unblind): Mark with
+ _NETTLE_ATTRIBUTE_DEPRECATED.
+
* nettle-types.h (_NETTLE_ATTRIBUTE_PURE)
(_NETTLE_ATTRIBUTE_DEPRECATED): New macros, for gcc and
lookalikes.
diff --git a/rsa-internal.h b/rsa-internal.h
index 1f98f95f..5c97eaa1 100644
--- a/rsa-internal.h
+++ b/rsa-internal.h
@@ -61,8 +61,9 @@ _rsa_check_size(mpz_t n);
void
_rsa_blind (const struct rsa_public_key *pub,
void *random_ctx, nettle_random_func *random,
- mpz_t c, mpz_t ri);
+ mpz_t c, mpz_t ri) _NETTLE_ATTRIBUTE_DEPRECATED;
void
-_rsa_unblind (const struct rsa_public_key *pub, mpz_t c, const mpz_t ri);
+_rsa_unblind (const struct rsa_public_key *pub, mpz_t c, const mpz_t ri)
+ _NETTLE_ATTRIBUTE_DEPRECATED;
#endif /* NETTLE_RSA_INTERNAL_H_INCLUDED */