]>
Commit | Line | Data |
---|---|---|
989a2c2c | 1 | /* |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Locker$ | |
5 | * $Header$ | |
6 | */ | |
7 | ||
8 | #include <stdio.h> | |
9 | #include <ctype.h> | |
10 | #include "files.h" | |
11 | ||
12 | #include "../userinfod/db.h" | |
13 | #include "../userinfod/protocol.h" | |
14 | ||
15 | /* Input timeouts. The most important timeouts are those for the username | |
16 | and the new password which should not be any longer than necessary. The | |
17 | firstname timeout causes userreg to restart itself periodically since | |
18 | userreg is waiting for a firstname when it is not being used. All the | |
19 | other timeouts are just there so that userreg will not stay in a half-used | |
20 | state -- possibly confusing an unwary registree. | |
21 | */ | |
22 | #define FIRSTNAME_TIMEOUT 600 /* 30 minutes */ | |
23 | #define MI_TIMEOUT 90 | |
24 | #define LASTNAME_TIMEOUT 90 | |
25 | #define MITID_TIMEOUT 90 | |
26 | #define USERNAME_TIMEOUT 90 /* This should not be too long */ | |
27 | #define OLD_PASSWORD_TIMEOUT 90 | |
28 | #define NEW_PASSWORD_TIMEOUT 90 /* Neither should this */ | |
29 | #define REENTER_PASSWORD_TIMEOUT 90 | |
30 | #define YN_TIMEOUT 90 | |
31 | #define TIMER_TIMEOUT 90 /* default timeout for timer_on() */ | |
32 | ||
33 | #define NO 0 | |
34 | #define YES 1 | |
35 | ||
36 | /* Externs from display.c */ | |
37 | extern setup_display (); | |
38 | extern reset_display (); | |
39 | extern restore_display (); | |
40 | extern redisp (); | |
41 | extern input (); | |
42 | extern input_no_echo (); | |
43 | extern display_text_line (); | |
44 | extern display_text (); | |
45 | ||
46 | /* Global variables */ | |
47 | extern struct user user, | |
48 | db_user; | |
49 | char typed_mit_id[100]; |