Lines Matching defs:module
54 * Locate a matching dynamic or static module.
60 pam_module_t *module;
62 module = openpam_dynamic(modulename);
64 (module == NULL) ? "no" : "using", modulename);
67 /* look for a static module */
68 if (module == NULL && strchr(modulename, '/') == NULL) {
69 module = openpam_static(modulename);
71 (module == NULL) ? "no" : "using", modulename);
74 if (module == NULL) {
78 return (module);
83 * Release a module.
88 openpam_release_module(pam_module_t *module)
91 if (module == NULL)
93 if (module->dlh == NULL)
94 /* static module */
96 dlclose(module->dlh);
97 openpam_log(PAM_LOG_DEBUG, "releasing %s", module->path);
98 FREE(module->path);
99 FREE(module);
117 openpam_release_module(chain->module);
118 chain->module = NULL;