aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-20 10:08:03 +0100
committerRichard Levitte <levitte@openssl.org>2020-12-04 20:44:24 +0100
commit00639486b0ab66d9cd89ab47fc56a3ac6cb40084 (patch)
treed35bdba700b288b324db6aa413b1e602710e5a0b
parentbe8e9b39a32d6eae59f8b7eab48e9535bd4e9bb2 (diff)
downloadopenssl-00639486b0ab66d9cd89ab47fc56a3ac6cb40084.tar.gz
Switch deprecation method for RAND
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/13460)
-rw-r--r--include/openssl/rand.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/openssl/rand.h b/include/openssl/rand.h
index 73eefd5c14..2570b8463e 100644
--- a/include/openssl/rand.h
+++ b/include/openssl/rand.h
@@ -64,8 +64,9 @@ int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, int num);
/* Equivalent of RAND_bytes() but additionally taking an OSSL_LIB_CTX */
int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, int num);
-
-DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
+# ifndef OPENSSL_NO_DEPRECATED_1_1_0
+OSSL_DEPRECATEDIN_1_1_0 int RAND_pseudo_bytes(unsigned char *buf, int num);
+# endif
EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
@@ -93,8 +94,10 @@ int RAND_poll(void);
# if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))
/* application has to include <windows.h> in order to use these */
-DEPRECATEDIN_1_1_0(void RAND_screen(void))
-DEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))
+# ifndef OPENSSL_NO_DEPRECATED_1_1_0
+OSSL_DEPRECATEDIN_1_1_0 void RAND_screen(void);
+OSSL_DEPRECATEDIN_1_1_0 int RAND_event(UINT, WPARAM, LPARAM);
+# endif
# endif
#ifdef __cplusplus