From c49ded5fdc2acd0e75c99d724c847d3eee5f17a8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 6 Jun 1994 00:04:27 +0000 Subject: [PATCH] added PASSWORD_TIMEOUT + prototypes for new functions --- sudo.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sudo.h b/sudo.h index 7dbd7e441..9b811b968 100644 --- a/sudo.h +++ b/sudo.h @@ -119,6 +119,13 @@ # define TIMEOUT 5 #endif +/* + * Number of seconds that can elapse before a user enters a password + */ +#ifndef PASSWORD_TIMEOUT +# define PASSWORD_TIMEOUT 300 +#endif + /* * Number of times sudo will let you guess are you password before screaming */ @@ -322,8 +329,15 @@ typedef struct list { /* These are the functions that are called in sudo(8) */ #ifndef HAVE_STRDUP -char *strdup __P((char *)); +char *strdup __P((const char *)); +#endif +#ifndef HAVE_GETCWD +char *getcwd __P((char *, size_t)); +#endif +#ifndef HAVE_REALPATH +char *realpath __P((const char *, char *)); #endif +char *tgetpass __P((char *, int)); char *find_path __P((char *)); void log_error __P((int)); void inform_user __P((int)); -- 2.40.0