Don't ignore config_name parameter passed to OPENSSL_config(). Use

"openssl_conf" in config file if config_name variable is missing.
This commit is contained in:
Dr. Stephen Henson
2007-04-09 11:45:54 +00:00
parent 0cc361f3e7
commit d318fb79d2
3 changed files with 8 additions and 6 deletions

View File

@@ -126,17 +126,18 @@ int CONF_modules_load(const CONF *cnf, const char *appname,
{
STACK_OF(CONF_VALUE) *values;
CONF_VALUE *vl;
char *vsection;
char *vsection = NULL;
int ret, i;
if (!cnf)
return 1;
if (appname == NULL)
appname = "openssl_conf";
if (appname)
vsection = NCONF_get_string(cnf, NULL, appname);
vsection = NCONF_get_string(cnf, NULL, appname);
if (!appname || (!vsection && (flags & CONF_MFLAGS_DEFAULT_SECTION)))
vsection = NCONF_get_string(cnf, NULL, "openssl_conf");
if (!vsection)
{