From: Ben Laurie Date: Fri, 18 Jan 2002 11:46:39 +0000 (+0000) Subject: Stupid apps should die, not fail silently. X-Git-Tag: OpenSSL-engine-0_9_6c^2^2~94 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1cfa8a397fed541a6efd09571b1afc7aee598a45;p=oweals%2Fopenssl.git Stupid apps should die, not fail silently. --- diff --git a/crypto/conf/conf_mall.c b/crypto/conf/conf_mall.c index 01a653252c..7ecc1aee61 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;