summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
Diffstat (limited to 'auth')
-rw-r--r--auth/gensec/gensec_start.c14
-rw-r--r--auth/gensec/wscript_build2
2 files changed, 8 insertions, 8 deletions
diff --git a/auth/gensec/gensec_start.c b/auth/gensec/gensec_start.c
index a48606f7cd..c38b97050f 100644
--- a/auth/gensec/gensec_start.c
+++ b/auth/gensec/gensec_start.c
@@ -29,7 +29,7 @@
#include "auth/gensec/gensec.h"
#include "lib/param/param.h"
#include "lib/util/tsort.h"
-#include "lib/util/samba_module.h"
+#include "lib/util/samba_modules.h"
/* the list of currently registered GENSEC backends */
static struct gensec_security_ops **generic_security_ops;
@@ -878,19 +878,19 @@ _PUBLIC_ NTSTATUS gensec_init(void)
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
#ifdef STATIC_gensec_MODULES
STATIC_gensec_MODULES_PROTO;
- samba_module_init_fn static_init[] = { STATIC_gensec_MODULES };
+ init_module_fn static_init[] = { STATIC_gensec_MODULES };
#else
- samba_module_init_fn *static_init = NULL;
+ init_module_fn *static_init = NULL;
#endif
- samba_module_init_fn *shared_init;
+ init_module_fn *shared_init;
if (initialized) return NT_STATUS_OK;
initialized = true;
- shared_init = samba_module_init_fns_for_subsystem(NULL, "gensec");
+ shared_init = load_samba_modules(NULL, "gensec");
- samba_module_init_fns_run(static_init);
- samba_module_init_fns_run(shared_init);
+ run_init_functions(static_init);
+ run_init_functions(shared_init);
talloc_free(shared_init);
diff --git a/auth/gensec/wscript_build b/auth/gensec/wscript_build
index 6514a064b7..e3e9372c3d 100644
--- a/auth/gensec/wscript_build
+++ b/auth/gensec/wscript_build
@@ -3,7 +3,7 @@ bld.SAMBA_LIBRARY('gensec',
source='gensec.c gensec_start.c',
pc_files='gensec.pc',
autoproto='gensec_toplevel_proto.h',
- public_deps='tevent-util samba-util errors LIBPACKET auth_system_session samba-module gensec_util',
+ public_deps='tevent-util samba-util errors LIBPACKET auth_system_session samba-modules gensec_util',
public_headers='gensec.h',
deps='com_err',
vnum='0.0.1'