$(srcdir)/ustime.c \
$(srcdir)/write_msg.c
-##WIN16##LIBOBJS = $(OBJS)
-##WIN32##LIBOBJS = $(OBJS) win-pwd.obj
-
-##WIN32##.rc.obj:
-##WIN32## $(RC) $(CPPFLAGS) /r $**
-##WIN32## $(CVTRES) /nologo /out:$@ $*.res
+##DOS##LIBOBJS = $(OBJS)
all-unix:: all-libobjs
clean-unix:: clean-libobjs
}
#endif
-#ifdef _WIN32 /* defined(_MSDOS) || defined(_WIN32) */
+#if defined(_MSDOS) || defined(_WIN32)
#define DEFINED_KRB5_READ_PASSWORD
#include <io.h>
-#include "win-pwd.h"
typedef struct {
char *pwd_prompt;
}
#endif
-static char *pwd_prompt;
-static char *pwd_prompt2;
-static char *pwd_return_pwd;
-static int *pwd_size_return;
-
static int CALLBACK
read_pwd_proc(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- pwd_params FAR *dp = (pwd_params FAR *) lParam;
+ pwd_params FAR *dp;
switch(msg) {
case WM_INITDIALOG:
+ dp = (pwd_params FAR *) lParam;
SetWindowLong(hdlg, DWL_USER, lParam);
SetDlgItemText(hdlg, ID_READ_PWD_PROMPT, dp->pwd_prompt);
SetDlgItemText(hdlg, ID_READ_PWD_PROMPT2, dp->pwd_prompt2);
return TRUE;
case WM_COMMAND:
+ dp = (pwd_params FAR *) GetWindowLong(hdlg, DWL_USER);
switch (wParam) {
case IDOK:
*(dp->pwd_size_return) =
GetDlgItemText(hdlg, ID_READ_PWD_PWD,
- pwd_return_pwd, *pwd_size_return);
+ dp->pwd_return_pwd, *(dp->pwd_size_return));
EndDialog(hdlg, TRUE);
break;
+++ /dev/null
-/*
- * lib/krb5/os/win-pwd.h
- *
- * Copyright 1997 by the Massachusetts Institute of Technology.
- * All Rights Reserved.
- *
- * Export of this software from the United States of America may
- * require a specific license from the United States Government.
- * It is the responsibility of any person or organization contemplating
- * export to obtain such a license before exporting.
- *
- * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
- * distribute this software and its documentation for any purpose and
- * without fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright notice and
- * this permission notice appear in supporting documentation, and that
- * the name of M.I.T. not be used in advertising or publicity pertaining
- * to distribution of the software without specific, written prior
- * permission. M.I.T. makes no representations about the suitability of
- * this software for any purpose. It is provided "as is" without express
- * or implied warranty.
- *
- */
-
-#define ID_READ_PWD_DIALOG 10000
-#define ID_READ_PWD_PROMPT 10001
-#define ID_READ_PWD_PROMPT2 10002
-#define ID_READ_PWD_PWD 10003
+++ /dev/null
-/*
- * lib/krb5/os/win-pwd.h
- *
- * Copyright 1997 by the Massachusetts Institute of Technology.
- * All Rights Reserved.
- *
- * Export of this software from the United States of America may
- * require a specific license from the United States Government.
- * It is the responsibility of any person or organization contemplating
- * export to obtain such a license before exporting.
- *
- * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
- * distribute this software and its documentation for any purpose and
- * without fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright notice and
- * this permission notice appear in supporting documentation, and that
- * the name of M.I.T. not be used in advertising or publicity pertaining
- * to distribution of the software without specific, written prior
- * permission. M.I.T. makes no representations about the suitability of
- * this software for any purpose. It is provided "as is" without express
- * or implied warranty.
- *
- */
-
-#include "win-pwd.h"
-#include <windows.h>
-
-ID_READ_PWD_DIALOG DIALOG 60, 72, 200, 84
-STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
- DS_SETFONT
-CAPTION "Kerberos Password/Challenge"
-FONT 8, "Helv"
-{
- LTEXT "", ID_READ_PWD_PROMPT, 10, 8, 180, 10
- LTEXT "", ID_READ_PWD_PROMPT2, 10, 24, 180, 10
- EDITTEXT ID_READ_PWD_PWD, 10, 42, 180, 12, ES_AUTOHSCROLL | ES_PASSWORD |
- WS_BORDER | WS_TABSTOP
- DEFPUSHBUTTON "&OK", IDOK, 55, 61, 40, 14
- PUSHBUTTON "&Cancel", IDCANCEL, 107, 61, 40, 14
-}