1f348698dff99e37c3d2867364000e6f152b76c8
[oweals/cde.git] / cde / programs / dtlogin / sysauth.h
1 /* $XConsortium: sysauth.h /main/4 1995/10/27 16:16:09 rswiston $ */
2 /*                                                                      *
3  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
4  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
5  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
6  * (c) Copyright 1993, 1994 Novell, Inc.                                *
7  */
8 /************************************<+>*************************************
9  ****************************************************************************
10  **
11  **   File:        sysauth.h
12  **
13  **   Project:     HP Visual User Environment (DT)
14  **
15  **   Description: Header file for system authentication routine
16  **
17  **                Defines, structure definitions, and external declarations
18  **                are specified here.
19  **
20  **
21  **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
22  **
23  **
24  **
25  ****************************************************************************
26  ************************************<+>*************************************/
27
28 #ifndef _SYSAUTH_H
29 #define _SYSAUTH_H
30
31 /****************************************************************************
32  *
33  *  Defines
34  *
35  ****************************************************************************/
36
37 /*
38  *  Authenticate return codes...
39  */
40
41 #define VF_OK                   1
42 #define VF_INVALID              2
43 #define VF_HOME                 3
44 #define VF_MAX_USERS            4
45 #define VF_PASSWD_AGED          5
46 #define VF_BAD_UID              6
47 #define VF_BAD_GID              7
48 #define VF_BAD_AID              8
49 #define VF_BAD_AFLAG            9
50 #define VF_NO_LOGIN             10
51 #define VF_BAD_HOSTNAME         11
52 #define VF_CHALLENGE            12
53 #define VF_MESSAGE              13
54
55 #ifdef BLS
56 #define VF_BAD_SEN_LEVEL        14
57 #endif
58  
59 /****************************************************************************
60  *
61  *  External procedure declarations
62  *
63  ****************************************************************************/
64
65 extern int  Authenticate(struct display *d, char *name, char *passwd,
66                          char **msg) ;
67
68
69 #endif /* _SYSAUTH_H */