diff options
author | Ben Laurie <ben@openssl.org> | 2002-01-18 11:46:39 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-01-18 11:46:39 +0000 |
commit | 1cfa8a397fed541a6efd09571b1afc7aee598a45 (patch) | |
tree | c359d2d0e69c923fb7b2cff9bccb53554ed93c7e /crypto | |
parent | bdae099862cbb0e4cb8919d99bb8555a3c44c2ac (diff) | |
download | openssl-1cfa8a397fed541a6efd09571b1afc7aee598a45.zip openssl-1cfa8a397fed541a6efd09571b1afc7aee598a45.tar.gz openssl-1cfa8a397fed541a6efd09571b1afc7aee598a45.tar.bz2 |
Stupid apps should die, not fail silently.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/conf/conf_mall.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/crypto/conf/conf_mall.c b/crypto/conf/conf_mall.c index 01a6532..7ecc1ae 100644 --- a/crypto/conf/conf_mall.c +++ b/crypto/conf/conf_mall.c @@ -96,7 +96,19 @@ void OPENSSL_config(void) file=config_name; } - CONF_modules_load_file(file, "openssl_config", CONF_MFLAGS_IGNORE_ERRORS); + if(CONF_modules_load_file(file, "openssl_config", 0) <= 0) + { + BIO *bio_err; + + ERR_load_crypto_strings(); + if ((bio_err=BIO_new(BIO_s_file())) != NULL) + { + BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT); + BIO_printf(bio_err,"Auto configuration failed\n"); + ERR_print_errors(bio_err); + } + exit(1); + } return; |