summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-06 11:19:55 +0100
committerMatt Caswell <matt@openssl.org>2016-04-13 08:52:33 +0100
commitf3cd81d6538e6295eaa279acd65ad10faeccd2ed (patch)
tree26117ea3e3651aff964d42a7b986afd935c6ebeb /include
parentb22234deebe2e1758d59c64778ce462f11f16cb4 (diff)
Deprecate RAND_cleanup() and make it a no-op
RAND_cleanup() should not be called expicitly - we should leave auto-deinit to clean this up instead. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/rand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/openssl/rand.h b/include/openssl/rand.h
index 2a9a85c1f1..75f7389ebd 100644
--- a/include/openssl/rand.h
+++ b/include/openssl/rand.h
@@ -92,7 +92,9 @@ const RAND_METHOD *RAND_get_rand_method(void);
int RAND_set_rand_engine(ENGINE *engine);
# endif
RAND_METHOD *RAND_OpenSSL(void);
-void RAND_cleanup(void);
+#if OPENSSL_API_COMPAT < 0x10100000L
+# define RAND_cleanup()
+#endif
int RAND_bytes(unsigned char *buf, int num);
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
void RAND_seed(const void *buf, int num);