diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-12 13:40:15 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-10-12 23:31:00 +0200 |
commit | a0a82324f965bbcc4faed4e1ee3fcaf81ea52166 (patch) | |
tree | f7221e7b9d58b659c094aac39a6497c25938588e /apps/rand.c | |
parent | Fix option name discrepancy (diff) | |
download | openssl-a0a82324f965bbcc4faed4e1ee3fcaf81ea52166.tar.xz openssl-a0a82324f965bbcc4faed4e1ee3fcaf81ea52166.zip |
Centralise loading default apps config file
Loading the config file after processing command line options can
cause problems, e.g. where an engine provides new ciphers/digests
these are not then recoginised on the command line. Move the
default config file loading to before the command line option
processing. Whilst we're doing this we might as well centralise
this instead of doing it individually for each application. Finally
if we do it before the OpenSSL_add_ssl_algorithms() call then
ciphersuites provided by an engine (e.g. GOST) can be available to
the apps.
RT#4085
RT#4086
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/rand.c')
-rw-r--r-- | apps/rand.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/rand.c b/apps/rand.c index 315e6be02f..150eef4fb1 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -126,9 +126,6 @@ int rand_main(int argc, char **argv) if (sscanf(argv[0], "%d", &num) != 1 || num < 0) goto opthelp; - if (!app_load_modules(NULL)) - goto end; - app_RAND_load_file(NULL, (inrand != NULL)); if (inrand != NULL) BIO_printf(bio_err, "%ld semi-random bytes loaded\n", |