From 3647bee263ebfef8694f7df07498a17b03ad883d Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 22 Feb 2002 14:01:21 +0000 Subject: Config code updates. CONF_modules_unload() now calls CONF_modules_finish() automatically. Default use of section openssl_conf moved to CONF_modules_load() Load config file in several openssl utilities. Most utilities now load modules from the config file, though in a few (such as version) this isn't done because it couldn't be used for anything. In the case of ca and req the config file used is the same as the utility itself: that is the -config command line option can be used to specify an alternative file. --- apps/smime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/smime.c') diff --git a/apps/smime.c b/apps/smime.c index 731f9dd5d0..cd750e32b7 100644 --- a/apps/smime.c +++ b/apps/smime.c @@ -109,6 +109,9 @@ int MAIN(int argc, char **argv) args = argv + 1; ret = 1; + if (!load_config(bio_err, NULL)) + goto end; + while (!badarg && *args && *args[0] == '-') { if (!strcmp (*args, "-encrypt")) operation = SMIME_ENCRYPT; else if (!strcmp (*args, "-decrypt")) operation = SMIME_DECRYPT; -- cgit v1.2.3