]> andersk Git - moira.git/blame - clients/userreg/userreg.h
Initial revision
[moira.git] / clients / userreg / userreg.h
CommitLineData
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 */
37extern setup_display ();
38extern reset_display ();
39extern restore_display ();
40extern redisp ();
41extern input ();
42extern input_no_echo ();
43extern display_text_line ();
44extern display_text ();
45
46/* Global variables */
47extern struct user user,
48 db_user;
49char typed_mit_id[100];
This page took 1.351855 seconds and 5 git commands to generate.