Lines Matching refs:imod
74 static void module_finish(CONF_IMODULE *imod);
434 CONF_IMODULE *imod = NULL; in module_init() local
439 imod = OPENSSL_malloc(sizeof(*imod)); in module_init()
440 if (imod == NULL) in module_init()
443 imod->pmod = pmod; in module_init()
444 imod->name = OPENSSL_strdup(name); in module_init()
445 imod->value = OPENSSL_strdup(value); in module_init()
446 imod->usr_data = NULL; in module_init()
448 if (!imod->name || !imod->value) in module_init()
453 ret = pmod->init(imod, cnf); in module_init()
478 if (!sk_CONF_IMODULE_push(new_modules, imod)) { in module_init()
497 pmod->finish(imod); in module_init()
500 if (imod) { in module_init()
501 OPENSSL_free(imod->name); in module_init()
502 OPENSSL_free(imod->value); in module_init()
503 OPENSSL_free(imod); in module_init()
575 CONF_IMODULE *imod; in conf_modules_finish_int() local
593 imod = sk_CONF_IMODULE_pop(old_modules); in conf_modules_finish_int()
594 module_finish(imod); in conf_modules_finish_int()
608 static void module_finish(CONF_IMODULE *imod) in module_finish() argument
610 if (!imod) in module_finish()
612 if (imod->pmod->finish) in module_finish()
613 imod->pmod->finish(imod); in module_finish()
614 imod->pmod->links--; in module_finish()
615 OPENSSL_free(imod->name); in module_finish()
616 OPENSSL_free(imod->value); in module_finish()
617 OPENSSL_free(imod); in module_finish()