aboutsummaryrefslogtreecommitdiff
path: root/apps/rsa.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-12 12:40:15 +0100
committerMatt Caswell <matt@openssl.org>2015-10-12 22:31:00 +0100
commita0a82324f965bbcc4faed4e1ee3fcaf81ea52166 (patch)
treef7221e7b9d58b659c094aac39a6497c25938588e /apps/rsa.c
parentd175e8a6c23ca212bf57ff78fdbca6942f3e0ef7 (diff)
downloadopenssl-a0a82324f965bbcc4faed4e1ee3fcaf81ea52166.zip
openssl-a0a82324f965bbcc4faed4e1ee3fcaf81ea52166.tar.gz
openssl-a0a82324f965bbcc4faed4e1ee3fcaf81ea52166.tar.bz2
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/rsa.c')
-rw-r--r--apps/rsa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/rsa.c b/apps/rsa.c
index f8a0dec..0640ba4 100644
--- a/apps/rsa.c
+++ b/apps/rsa.c
@@ -256,10 +256,6 @@ int rsa_main(int argc, char **argv)
BIO_printf(bio_err, "Error getting passwords\n");
goto end;
}
-
- if (!app_load_modules(NULL))
- goto end;
-
if (check && pubin) {
BIO_printf(bio_err, "Only private keys can be checked\n");
goto end;