2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 23:05:17 +00:00

added PASSWORD_TIMEOUT + prototypes for new functions

This commit is contained in:
Todd C. Miller
1994-06-06 00:04:27 +00:00
parent 2ff87dea0d
commit c49ded5fdc

16
sudo.h
View File

@@ -119,6 +119,13 @@
# define TIMEOUT 5 # define TIMEOUT 5
#endif #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 * 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) */ /* These are the functions that are called in sudo(8) */
#ifndef HAVE_STRDUP #ifndef HAVE_STRDUP
char *strdup __P((char *)); char *strdup __P((const char *));
#endif #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 *)); char *find_path __P((char *));
void log_error __P((int)); void log_error __P((int));
void inform_user __P((int)); void inform_user __P((int));