diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2017-01-26 19:10:29 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2017-01-26 19:10:29 +0000 |
| commit | 6cf8931a2f9fa26b2d9bdba6f1915f655e6bf25f (patch) | |
| tree | 38524daaff4806b24b9b140615ce1c3850784d8e /crypto/openssl/apps/rand.c | |
| parent | ee80cc1b1cd77939b98079da917464bf2dfaefb4 (diff) | |
| parent | 5315173646e65b5025be33013edc33eb9658e683 (diff) | |
Notes
Diffstat (limited to 'crypto/openssl/apps/rand.c')
| -rw-r--r-- | crypto/openssl/apps/rand.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/crypto/openssl/apps/rand.c b/crypto/openssl/apps/rand.c index e159da37be18e..96dcb7273a4df 100644 --- a/crypto/openssl/apps/rand.c +++ b/crypto/openssl/apps/rand.c @@ -86,9 +86,8 @@ int MAIN(int argc, char **argv) int hex = 0; BIO *out = NULL; int num = -1; -#ifndef OPENSSL_NO_ENGINE + ENGINE *e = NULL; char *engine = NULL; -#endif apps_startup(); @@ -162,9 +161,7 @@ int MAIN(int argc, char **argv) BIO_printf(bio_err, "-hex - hex encode output\n"); goto err; } -#ifndef OPENSSL_NO_ENGINE - setup_engine(bio_err, engine, 0); -#endif + e = setup_engine(bio_err, engine, 0); app_RAND_load_file(NULL, bio_err, (inrand != NULL)); if (inrand != NULL) @@ -222,6 +219,7 @@ int MAIN(int argc, char **argv) err: ERR_print_errors(bio_err); + release_engine(e); if (out) BIO_free_all(out); apps_shutdown(); |
