From a0a82324f965bbcc4faed4e1ee3fcaf81ea52166 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 12 Oct 2015 12:40:15 +0100 Subject: 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 --- apps/dhparam.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'apps/dhparam.c') diff --git a/apps/dhparam.c b/apps/dhparam.c index 334a129b1b..17c0b5b420 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -230,9 +230,6 @@ int dhparam_main(int argc, char **argv) argc = opt_num_rest(); argv = opt_rest(); - if (!app_load_modules(NULL)) - goto end; - if (argv[0] && (!opt_int(argv[0], &num) || num <= 0)) goto end; -- cgit v1.2.3