From: Niels Möller Date: Thu, 9 Aug 2018 20:00:03 +0000 (+0200) Subject: Mark obsolete helpers _rsa_blind and _rsa_unblind as deprecated. X-Git-Tag: nettle_3.5rc1~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fattribute-deprecated;p=thirdparty%2Fnettle.git Mark obsolete helpers _rsa_blind and _rsa_unblind as deprecated. --- diff --git a/ChangeLog b/ChangeLog index 8fa99a47..83e96789 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2018-08-09 Niels Möller + * 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 */