From: Richard Levitte Date: Fri, 20 Nov 2020 09:08:27 +0000 (+0100) Subject: Switch deprecation method for RC4 X-Git-Tag: openssl-3.0.0-alpha10~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a14afee9a2a595fd567f9fefdbeae43fe02c75;p=thirdparty%2Fopenssl.git Switch deprecation method for RC4 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13460) --- diff --git a/include/openssl/rc4.h b/include/openssl/rc4.h index 3850083a5d0..600b2885df1 100644 --- a/include/openssl/rc4.h +++ b/include/openssl/rc4.h @@ -30,12 +30,14 @@ typedef struct rc4_key_st { RC4_INT data[256]; } RC4_KEY; # endif - -DEPRECATEDIN_3_0(const char *RC4_options(void)) -DEPRECATEDIN_3_0(void RC4_set_key(RC4_KEY *key, int len, - const unsigned char *data)) -DEPRECATEDIN_3_0(void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, - unsigned char *outdata)) +# ifndef OPENSSL_NO_DEPRECATED_3_0 +OSSL_DEPRECATEDIN_3_0 const char *RC4_options(void); +OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len, + const unsigned char *data); +OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len, + const unsigned char *indata, + unsigned char *outdata); +# endif # ifdef __cplusplus }