static HEIMDAL_MUTEX plugin_mutex = HEIMDAL_MUTEX_INITIALIZER;
static struct plugin *registered = NULL;
+
+#ifdef HAVE_DLOPEN
static int plugins_needs_scan = 1;
static const char *sysplugin_dirs[] = {
NULL
};
+#endif /* HAVE_DLOPEN */
+
/*
*
*/
return 0;
}
+#ifdef HAVE_DLOPEN
+
static int
is_valid_plugin_filename(const char * n)
{
return 0;
plugins_needs_scan = 0;
-#ifdef HAVE_DLOPEN
-
dirs = krb5_config_get_strings(context, NULL, "libdefaults",
"plugin_dir", NULL);
if (dirs == NULL)
}
if (dirs != rk_UNCONST(sysplugin_dirs))
krb5_config_free_strings(dirs);
-#endif /* HAVE_DLOPEN */
return 0;
}
+#else /* HAVE_DLOPEN */
+
+static krb5_error_code
+load_plugins(krb5_context context)
+{
+ return 0;
+}
+
+#endif /* HAVE_DLOPEN */
+
static krb5_error_code
add_symbol(krb5_context context, struct krb5_plugin **list, void *symbol)
{