From: Todd C. Miller Date: Mon, 6 Jun 1994 00:04:27 +0000 (+0000) Subject: added PASSWORD_TIMEOUT + prototypes for new functions X-Git-Tag: SUDO_1_3_1~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c49ded5fdc2acd0e75c99d724c847d3eee5f17a8;p=sudo added PASSWORD_TIMEOUT + prototypes for new functions --- 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));