}
static CK_RV
-load_module_from_config_unlocked (const char *configfile, const char *name,
- Module **result)
+load_module_from_config_unlocked (const char *configfile, const char *name)
{
Module *mod, *prev;
const char *path;
path = hash_get (mod->config, "module");
if (path == NULL) {
free_module_unlocked (mod);
- warning ("no module path specified in config: %s", configfile);
- return CKR_GENERAL_ERROR;
+ debug ("no module path specified in config, skipping: %s", configfile);
+ return CKR_OK;
}
rv = dlopen_and_get_function_list (mod, path);
return CKR_HOST_MEMORY;
}
- if (result)
- *result = mod;
return CKR_OK;
}
if (is_dir)
rv = CKR_OK;
else
- rv = load_module_from_config_unlocked (path, dp->d_name, NULL);
+ rv = load_module_from_config_unlocked (path, dp->d_name);
free (path);