diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-11-17 18:36:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-11-17 18:36:13 +0000 |
commit | 00dd8f6d6e703dadab3c50af84ed55ffff598ddc (patch) | |
tree | 857c1b2691f5adeb22cda358dd70214bf322f712 /apps/req.c | |
parent | 5dd87981bf7e6245993efb854f815f43dd3ffc62 (diff) | |
download | openssl-00dd8f6d6e703dadab3c50af84ed55ffff598ddc.zip openssl-00dd8f6d6e703dadab3c50af84ed55ffff598ddc.tar.gz openssl-00dd8f6d6e703dadab3c50af84ed55ffff598ddc.tar.bz2 |
In "req" exit immediately if configuration file is needed and it can't
be loaded instead of giving the misleading:
"unable to find 'distinguised_name' in config"
error message.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -567,13 +567,16 @@ bad: else { req_conf=config; - if( verbose ) - BIO_printf(bio_err,"Using configuration from %s\n", - default_config_file); + if (req_conf == NULL) { - BIO_printf(bio_err,"Unable to load config info\n"); + BIO_printf(bio_err,"Unable to load config info from %s\n", default_config_file); + if (newreq) + goto end; } + else if( verbose ) + BIO_printf(bio_err,"Using configuration from %s\n", + default_config_file); } if (req_conf != NULL) |