From e0a74797bd3a8395b81e68ecfa7ada6e2b4be4c6 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 14 Jun 2013 01:33:26 -0400 Subject: Provide plugin module ordering guarantees Rewrite the plugin internals so that modules have a well-defined order--either the order of enable_only tags, or dynamic modules followed by the built-in modules in order of registration. ticket: 7665 (new) --- src/include/k5-int.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/include') diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 73f404bdf..63e0e8a32 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1057,21 +1057,11 @@ krb5_authdata_free_internal(krb5_context kcontext, * and krb5.conf man page. */ -/* - * A linked list entry mapping a module name to a module initvt function. The - * entry may also include a dynamic object handle so that it can be released - * when the context is destroyed. - */ -struct plugin_mapping { - char *modname; - krb5_plugin_initvt_fn module; - struct plugin_file_handle *dyn_handle; - struct plugin_mapping *next; -}; +struct plugin_mapping; /* Holds krb5_context information about each pluggable interface. */ struct plugin_interface { - struct plugin_mapping *modules; + struct plugin_mapping **modules; krb5_boolean configured; }; -- cgit