Lines Matching refs:module
51 * Locate a matching dynamic or static module.
57 pam_module_t *module;
59 module = openpam_dynamic(modulename);
61 (module == NULL) ? "no" : "using", modulename);
64 /* look for a static module */
65 if (module == NULL && strchr(modulename, '/') == NULL) {
66 module = openpam_static(modulename);
68 (module == NULL) ? "no" : "using", modulename);
71 if (module == NULL) {
75 return (module);
80 * Release a module.
85 openpam_release_module(pam_module_t *module)
87 if (module == NULL)
89 if (module->dlh == NULL)
90 /* static module */
92 dlclose(module->dlh);
93 openpam_log(PAM_LOG_DEBUG, "releasing %s", module->path);
94 FREE(module->path);
95 FREE(module);
112 openpam_release_module(chain->module);
113 chain->module = NULL;