summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib/openpam_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/openpam/lib/openpam_load.c')
-rw-r--r--contrib/openpam/lib/openpam_load.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/contrib/openpam/lib/openpam_load.c b/contrib/openpam/lib/openpam_load.c
index 1a345ec..057e38f 100644
--- a/contrib/openpam/lib/openpam_load.c
+++ b/contrib/openpam/lib/openpam_load.c
@@ -42,10 +42,6 @@
#include "openpam_impl.h"
-#ifdef OPENPAM_STATIC_MODULES
-SET_DECLARE(_openpam_modules, pam_module_t);
-#endif
-
const char *_pam_sm_func_name[PAM_NUM_PRIMITIVES] = {
"pam_sm_authenticate",
"pam_sm_setcred",
@@ -92,14 +88,7 @@ openpam_load_module(const char *path)
#ifdef OPENPAM_STATIC_MODULES
/* look for a static module */
if (module == NULL && strchr(path, '/') == NULL) {
- pam_module_t **modp;
-
- SET_FOREACH(modp, _openpam_modules) {
- if (strcmp((*modp)->path, path) == 0) {
- module = *modp;
- break;
- }
- }
+ module = openpam_static(path);
openpam_log(PAM_LOG_DEBUG, "%s static %s",
(module == NULL) ? "no" : "using", path);
}
@@ -225,3 +214,7 @@ openpam_clear_chains(pam_handle_t *pamh)
for (i = 0; i < PAM_NUM_CHAINS; ++i)
openpam_destroy_chain(pamh->chains[i]);
}
+
+/*
+ * NOPARSE
+ */
OpenPOWER on IntegriCloud