#ifndef _XtLogin_h
#define _XtLogin_h
# define XtNgreeting "greeting"
# define XtNunsecureGreeting "unsecureGreeting"
# define XtNnamePrompt "namePrompt"
# define XtNpasswdPrompt "passwdPrompt"
# define XtNfail "fail"
# define XtNnotifyDone "notifyDone"
# define XtNpromptColor "promptColor"
# define XtNgreetColor "greetColor"
# define XtNfailColor "failColor"
# define XtNpromptFont "promptFont"
# define XtNgreetFont "greetFont"
# define XtNfailFont "failFont"
# define XtNfailTimeout "failTimeout"
# define XtNsessionArgument "sessionArgument"
# define XtNsecureSession "secureSession"
# define XtNallowAccess "allowAccess"
# define XtNallowNullPasswd "allowNullPasswd"
# define XtNallowRootLogin "allowRootLogin"
#ifdef XPM
# define XtNhiColor "hiColor"
# define XtNshdColor "shdColor"
# define XtNframeWidth "frameWidth"
# define XtNinnerFramesWidth "innerFramesWidth"
# define XtNsepWidth "sepWidth"
#define XtNlastEventTime "lastEventTime"
#define XtCLastEventTime "LastEventTime"
#define XtNuseShape "useShape"
#define XtCUseShape "UseShape"
#define XtNlogoFileName "logoFileName"
#define XtCLogoFileName "LogoFileName"
#define XtNlogoPadding "logoPadding"
#define XtCLogoPadding "LogoPadding"
# define XtCFrameWidth "FrameWidth"
#endif
# define XtCGreeting "Greeting"
# define XtCNamePrompt "NamePrompt"
# define XtCPasswdPrompt "PasswdPrompt"
# define XtCFail "Fail"
# define XtCFailTimeout "FailTimeout"
# define XtCSessionArgument "SessionArgument"
# define XtCSecureSession "SecureSession"
# define XtCAllowAccess "AllowAccess"
# define XtCAllowNullPasswd "AllowNullPasswd"
# define XtCAllowRootLogin "AllowRootLogin"
#ifdef __OpenBSD__
#include <sys/param.h>
#if OpenBSD > 200012
#define HAVE_PW_NAME_LEN
#endif
#endif
#ifndef HAVE_PW_NAME_LEN
#define NAME_LEN 32
#define PASSWORD_LEN 32
#else
#include <pwd.h>
#define NAME_LEN (_PW_NAME_LEN + 2)
#define PASSWORD_LEN (_PASSWORD_LEN + 2)
#endif
typedef struct _LoginData {
char name[NAME_LEN], passwd[PASSWORD_LEN];
} LoginData;
# define NOTIFY_OK 0
# define NOTIFY_ABORT 1
# define NOTIFY_RESTART 2
# define NOTIFY_ABORT_DISPLAY 3
typedef struct _LoginRec *LoginWidget;
typedef struct _LoginClassRec *LoginWidgetClass;
extern WidgetClass loginWidgetClass;
#endif