| 54 |
#include "fwd.h" |
#include "fwd.h" |
| 55 |
#include "sftp.h" |
#include "sftp.h" |
| 56 |
#include "kex.h" |
#include "kex.h" |
| 57 |
|
#include "dlglib.h" |
| 58 |
|
|
| 59 |
#include <sys/types.h> |
#include <sys/types.h> |
| 60 |
#include <sys/stat.h> |
#include <sys/stat.h> |
| 7351 |
char new_passwd[PASSWD_MAXLEN]; |
char new_passwd[PASSWD_MAXLEN]; |
| 7352 |
char retype_passwd[PASSWD_MAXLEN]; |
char retype_passwd[PASSWD_MAXLEN]; |
| 7353 |
static struct change_password *cp; |
static struct change_password *cp; |
| 7354 |
LOGFONT logfont; |
// LOGFONT logfont; |
| 7355 |
HFONT font; |
// HFONT font; |
| 7356 |
static HFONT DlgChgPassFont; |
// static HFONT DlgChgPassFont; |
| 7357 |
char uimsg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG]; |
| 7358 |
static PTInstVar pvar; |
static PTInstVar pvar; |
| 7359 |
|
|
| 7363 |
cp = (struct change_password *)lParam; |
cp = (struct change_password *)lParam; |
| 7364 |
pvar = cp->pvar; |
pvar = cp->pvar; |
| 7365 |
|
|
| 7366 |
|
#if 0 |
| 7367 |
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
| 7368 |
GetObject(font, sizeof(LOGFONT), &logfont); |
GetObject(font, sizeof(LOGFONT), &logfont); |
| 7369 |
|
|
| 7373 |
else { |
else { |
| 7374 |
DlgChgPassFont = NULL; |
DlgChgPassFont = NULL; |
| 7375 |
} |
} |
| 7376 |
|
#endif |
| 7377 |
|
|
| 7378 |
GetWindowText(dlg, uimsg, sizeof(uimsg)); |
GetWindowText(dlg, uimsg, sizeof(uimsg)); |
| 7379 |
UTIL_get_lang_msg("DLG_PASSCHG_TITLE", pvar, uimsg); |
UTIL_get_lang_msg("DLG_PASSCHG_TITLE", pvar, uimsg); |
| 7423 |
strncpy_s(cp->new_passwd, sizeof(cp->new_passwd), new_passwd, _TRUNCATE); |
strncpy_s(cp->new_passwd, sizeof(cp->new_passwd), new_passwd, _TRUNCATE); |
| 7424 |
|
|
| 7425 |
EndDialog(dlg, 1); // dialog close |
EndDialog(dlg, 1); // dialog close |
| 7426 |
|
#if 0 |
| 7427 |
if (DlgChgPassFont != NULL) { |
if (DlgChgPassFont != NULL) { |
| 7428 |
DeleteObject(DlgChgPassFont); |
DeleteObject(DlgChgPassFont); |
| 7429 |
DlgChgPassFont = NULL; |
DlgChgPassFont = NULL; |
| 7430 |
} |
} |
| 7431 |
|
#endif |
| 7432 |
return TRUE; |
return TRUE; |
| 7433 |
|
|
| 7434 |
case IDCANCEL: |
case IDCANCEL: |
| 7435 |
// 接続を切る |
// 接続を切る |
| 7436 |
notify_closed_connection(pvar, "authentication cancelled"); |
notify_closed_connection(pvar, "authentication cancelled"); |
| 7437 |
EndDialog(dlg, 0); // dialog close |
EndDialog(dlg, 0); // dialog close |
| 7438 |
|
#if 0 |
| 7439 |
if (DlgChgPassFont != NULL) { |
if (DlgChgPassFont != NULL) { |
| 7440 |
DeleteObject(DlgChgPassFont); |
DeleteObject(DlgChgPassFont); |
| 7441 |
DlgChgPassFont = NULL; |
DlgChgPassFont = NULL; |
| 7442 |
} |
} |
| 7443 |
|
#endif |
| 7444 |
return TRUE; |
return TRUE; |
| 7445 |
} |
} |
| 7446 |
} |
} |
| 8199 |
return 0; |
return 0; |
| 8200 |
} |
} |
| 8201 |
|
|
| 8202 |
|
/* dlglib に全く同じものがあるのでそちらを利用する */ |
| 8203 |
|
#if 0 |
| 8204 |
void InitDlgProgress(HWND HDlg, int id_Progress, int *CurProgStat) { |
void InitDlgProgress(HWND HDlg, int id_Progress, int *CurProgStat) { |
| 8205 |
HWND HProg; |
HWND HProg; |
| 8206 |
HProg = GetDlgItem(HDlg, id_Progress); |
HProg = GetDlgItem(HDlg, id_Progress); |
| 8213 |
|
|
| 8214 |
return; |
return; |
| 8215 |
} |
} |
| 8216 |
|
#endif |
| 8217 |
|
|
| 8218 |
static unsigned __stdcall ssh_scp_thread(void *p) |
static unsigned __stdcall ssh_scp_thread(void *p) |
| 8219 |
{ |
{ |