aboutsummaryrefslogtreecommitdiff
path: root/crypto/rand
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 /crypto/rand
parentb22234deebe2e1758d59c64778ce462f11f16cb4 (diff)
downloadopenssl-f3cd81d6538e6295eaa279acd65ad10faeccd2ed.zip
openssl-f3cd81d6538e6295eaa279acd65ad10faeccd2ed.tar.gz
openssl-f3cd81d6538e6295eaa279acd65ad10faeccd2ed.tar.bz2
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 'crypto/rand')
-rw-r--r--crypto/rand/rand_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 36b41cd..f5998f8 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -59,7 +59,7 @@
#include <time.h>
#include "internal/cryptlib.h"
#include <openssl/opensslconf.h>
-#include <openssl/rand.h>
+#include "internal/rand.h"
#include <openssl/engine.h>
@@ -125,7 +125,7 @@ int RAND_set_rand_engine(ENGINE *engine)
}
#endif
-void RAND_cleanup(void)
+void rand_cleanup_intern(void)
{
const RAND_METHOD *meth = RAND_get_rand_method();
if (meth && meth->cleanup)