static int standalone;
-static void pass_warn(void);
-
/*
* Initialize sudoers authentication method(s).
* Returns 0 on success and -1 on error.
debug_return_int(status == AUTH_FATAL ? -1 : 0);
}
+static void
+pass_warn(void)
+{
+ const char *warning = def_badpass_message;
+ debug_decl(pass_warn, SUDO_DEBUG_AUTH)
+
+#ifdef INSULT
+ if (def_insults)
+ warning = INSULT;
+#endif
+ sudo_printf(SUDO_CONV_ERROR_MSG, "%s\n", warning);
+
+ debug_return;
+}
+
/*
* Verify the specified user.
* Returns true if verified, false if not or -1 on error.
debug_return_int(status == AUTH_FATAL ? -1 : 1);
}
-static void
-pass_warn(void)
-{
- const char *warning = def_badpass_message;
- debug_decl(pass_warn, SUDO_DEBUG_AUTH)
-
-#ifdef INSULT
- if (def_insults)
- warning = INSULT;
-#endif
- sudo_printf(SUDO_CONV_ERROR_MSG, "%s\n", warning);
-
- debug_return;
-}
-
char *
auth_getpass(const char *prompt, int timeout, int type)
{