#include <config.h>
-#if defined(HAVE_DLOPEN) || defined(HAVE_SHL_LOAD)
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
# define RTLD_GLOBAL 0
#endif
+#if defined(HAVE_DLOPEN) || defined(HAVE_SHL_LOAD)
+
static void *group_handle;
static struct sudoers_group_plugin *group_plugin;
* No loadable shared object support.
*/
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-struct passwd;
-
int
group_plugin_load(char *plugin_info)
{
group_plugin_unload(void)
{
debug_decl(group_plugin_unload, SUDO_DEBUG_UTIL)
- debug_return_bool;
+ debug_return;
}
int
static void _warning(int, const char *, va_list);
void plugin_cleanup(int);
-sigjmp_buf error_jmp;
+extern sigjmp_buf error_jmp;
extern sudo_conv_t sudo_conv;
int NewArgc;
char **NewArgv;
-/* plugin_error.c */
-extern sigjmp_buf error_jmp;
+/* Declared here instead of plugin_error.c for static sudo builds. */
+sigjmp_buf error_jmp;
static int
sudoers_policy_open(unsigned int version, sudo_conv_t conversation,
extern int tgetpass_flags; /* XXX */
+#if defined(HAVE_DLOPEN) || defined(HAVE_SHL_LOAD)
sudo_conv_t sudo_conv; /* NULL in sudo front-end */
+#endif
/*
* Sudo conversation function.