summaryrefslogtreecommitdiffstats
path: root/apps/apps.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-03-28 14:28:06 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-03-28 14:28:06 +0000
commit944bc29f9004cf8851427ebfa83ee70b8399da57 (patch)
treeb6cb6c4c74d03dca4140a4e0a4a06957b6aeb18c /apps/apps.h
parent03e1b3a153d80babf55d6189dc5dc99bfda3d486 (diff)
Call RAND_cleanup in openssl application.
Diffstat (limited to 'apps/apps.h')
-rw-r--r--apps/apps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/apps.h b/apps/apps.h
index c1ca99da12..84db5ac753 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -183,11 +183,13 @@ extern BIO *bio_err;
# define apps_startup() \
do { do_pipe_sig(); CRYPTO_malloc_init(); \
ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); \
+ RAND_cleanup(); \
ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
# define apps_shutdown() \
do { CONF_modules_unload(1); destroy_ui_method(); \
OBJ_cleanup(); EVP_cleanup(); ENGINE_cleanup(); \
CRYPTO_cleanup_all_ex_data(); ERR_remove_thread_state(NULL); \
+ RAND_cleanup(); \
ERR_free_strings(); zlib_cleanup();} while(0)
# else
# define apps_startup() \