2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: vgproto.h /main/4 1995/11/21 14:03:25 rswiston $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
26 * (c) Copyright 1993, 1994 International Business Machines Corp. *
27 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
28 * (c) Copyright 1993, 1994 Novell, Inc. *
30 /************************************<+>*************************************
31 ****************************************************************************
35 ** Project: HP Visual User Environment (DT)
37 ** Description: Communications protocol between Dtlogin and Dtgreet.
40 ** (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
44 ****************************************************************************
45 ************************************<+>*************************************/
52 #include <X11/Intrinsic.h>
55 /***********************************************************************
57 * Environment variable definitions
59 ***********************************************************************/
61 #define ERRORLOG "ERRORLOG"
62 #define GRABSERVER "GRABSERVER"
63 #define GRABTIMEOUT "GRABTIMEOUT"
64 #define LANGLIST "LANGLIST"
65 #define LOCATION "DTXSERVERLOCATION"
66 #define PINGINTERVAL "PINGINTERVAL"
67 #define PINGTIMEOUT "PINGTIMEOUT"
68 #define SESSIONTYPE "SESSIONTYPE"
69 #define VERIFYNAME "VERIFYNAME"
71 #define VN_HPBLS "HPBLS"
72 #define VN_KRB "Kerberos"
73 #define DTLITE "DTLITE"
74 #define SESSION "SESSION"
75 #define SESSION_SET "SESSION_SET"
76 #define XFORCEINTERNET "XFORCE_INTERNET"
80 /***********************************************************************
82 * Exit codes from Greeter
84 ***********************************************************************/
88 # define NOTIFY_ABORT 1
89 # define NOTIFY_RESTART 2
90 # define NOTIFY_ABORT_DISPLAY 3
91 # define NOTIFY_NO_WINDOWS 4
92 # define NOTIFY_LANG_CHANGE 5
93 # define NOTIFY_FAILSAFE 6
94 # define NOTIFY_PASSWD_EXPIRED 7
95 # define NOTIFY_DTLITE 8
97 # define NOTIFY_XDM 10
98 # define NOTIFY_BAD_SECLEVEL 11
99 # define NOTIFY_LAST_DT 12
100 # define NOTIFY_ALT_DTS 20
102 /***********************************************************************
104 * Request protocol definitions
106 ***********************************************************************/
108 #define REQUEST_OP_NONE 0
109 #define REQUEST_OP_EXIT 2
110 #define REQUEST_OP_MESSAGE 3
111 #define REQUEST_OP_CHPASS 4
112 #define REQUEST_OP_CHALLENGE 5
113 #define REQUEST_OP_LANG 6
114 #define REQUEST_OP_HOSTNAME 7
115 #define REQUEST_OP_EXPASSWORD 8
116 #define REQUEST_OP_CLEAR 9
118 #define REQUEST_OP_FORM 10
120 #define REQUEST_OP_DEBUG 255
123 #define REQUEST_LIM_MAXLEN 768
125 #define REQUEST_LIM_MAXLEN 512
128 * Protocol structures. Offsets and lengths are from top of header.
133 unsigned char opcode; /* REQUEST_OP_* */
134 unsigned char reserved; /* reserved */
135 unsigned short length; /* total length */
136 /* op specific data */
145 unsigned short idMC; /* MC_* message catalog id */
146 unsigned short offMessage;
147 /* variable length message string */
165 unsigned short idMC; /* MC_* message catalog id */
166 unsigned short offChallenge;
167 unsigned short offUserNameSeed;
168 /* variable length challenge string */
169 /* variable length user name seed */
177 Boolean visible[MAX_PROMPTS]; /* MAX_PROMPTS defined in siad.h */
179 unsigned short offTitle;
180 unsigned short offPrompts;
181 /* variable length title string */
182 /* variable length prompt strings */
187 /***********************************************************************
189 * Response protocol definitions
191 ***********************************************************************/
197 unsigned char opcode; /* REQUEST_OP_* */
198 unsigned char reserved; /* reserved */
199 unsigned short length; /* total length */
200 /* op specific data */
221 } ResponseExpassword;
225 unsigned short offOldPassword;
226 unsigned short offNewPassword;
227 unsigned short offNewPasswordAgain;
228 /* variable length old password string */
229 /* variable length new password string */
230 /* variable length new password string */
235 unsigned short offResponse;
236 /* variable length challenge response string */
241 unsigned short offString;
242 /* variable length debug string */
247 unsigned short offLang;
248 /* variable length lang string */
257 unsigned short offAnswers;
258 /* variable length answer strings */
266 Boolean visible[MAX_PROMPTS];
268 char *prompts[MAX_PROMPTS];
269 char *answers[MAX_PROMPTS];
270 Widget sia_form_widget;
271 Widget answer_widgets[MAX_PROMPTS];
276 #endif /* _VGREET_H */
277 /* DON'T ADD STUFF AFTER THIS #endif */