diff options
author | Niels Möller <nisse@lysator.liu.se> | 2018-08-09 22:00:03 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2018-08-09 22:00:03 +0200 |
commit | f7e49547ea000c9d1fc47ccf78adcede88bbc16b (patch) | |
tree | 34db0cf1826980f61a05852bd3a124c5538d84f8 | |
parent | 6a19845e6f71791ca98765d490ec08e776494bee (diff) | |
download | nettle-attribute-deprecated.tar.gz |
Mark obsolete helpers _rsa_blind and _rsa_unblind as deprecated.attribute-deprecated
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | rsa-internal.h | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -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 */ |