Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 105 |
static HICON SecureNotifyIcon = NULL; |
static HICON SecureNotifyIcon = NULL; |
| 106 |
static HICON OldNotifyIcon = NULL; |
static HICON OldNotifyIcon = NULL; |
| 107 |
|
|
|
//static HFONT DlgHostFont; |
|
|
//static HFONT DlgAboutFont; |
|
| 108 |
static HFONT DlgAboutTextFont; |
static HFONT DlgAboutTextFont; |
|
//static HFONT DlgSetupFont; |
|
|
//static HFONT DlgKeygenFont; |
|
| 109 |
|
|
| 110 |
static TInstVar *pvar; |
static TInstVar *pvar; |
| 111 |
|
|
| 1266 |
static char *ComPortDesc[MAXCOMPORT]; |
static char *ComPortDesc[MAXCOMPORT]; |
| 1267 |
int comports; |
int comports; |
| 1268 |
BOOL Ok; |
BOOL Ok; |
|
// LOGFONT logfont; |
|
|
// HFONT font; |
|
| 1269 |
char uimsg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG]; |
| 1270 |
static HWND hwndHostname = NULL; // HOSTNAME dropdown |
static HWND hwndHostname = NULL; // HOSTNAME dropdown |
| 1271 |
static HWND hwndHostnameEdit = NULL; // Edit control on HOSTNAME dropdown |
static HWND hwndHostnameEdit = NULL; // Edit control on HOSTNAME dropdown |
| 1469 |
SetFocus(hwnd); |
SetFocus(hwnd); |
| 1470 |
} |
} |
| 1471 |
|
|
|
#if 0 |
|
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
|
|
GetObject(font, sizeof(LOGFONT), &logfont); |
|
|
if (UTIL_get_lang_font("DLG_SYSTEM_FONT", dlg, &logfont, &DlgHostFont, pvar)) { |
|
|
SendDlgItemMessage(dlg, IDC_HOSTTCPIP, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTNAMELABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTNAME, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HISTORY, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SERVICELABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTTELNET, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTSSH, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTOTHER, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTTCPPORTLABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTTCPPORT, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSH_VERSION_LABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSH_VERSION, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTTCPPROTOCOLLABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTTCPPROTOCOL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTSERIAL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTCOMLABEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTCOM, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDCANCEL, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTHELP, WM_SETFONT, (WPARAM)DlgHostFont, MAKELPARAM(TRUE,0)); |
|
|
} |
|
|
else { |
|
|
DlgHostFont = NULL; |
|
|
} |
|
|
#endif |
|
|
|
|
| 1472 |
CenterWindow(dlg, GetParent(dlg)); |
CenterWindow(dlg, GetParent(dlg)); |
| 1473 |
|
|
| 1474 |
// SetFocus()でフォーカスをあわせた場合、FALSEを返す必要がある。 |
// SetFocus()でフォーカスをあわせた場合、FALSEを返す必要がある。 |
| 1548 |
} |
} |
| 1549 |
SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)OrigHostnameEditProc); |
SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)OrigHostnameEditProc); |
| 1550 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
|
#if 0 |
|
|
if (DlgHostFont != NULL) { |
|
|
DeleteObject(DlgHostFont); |
|
|
} |
|
|
#endif |
|
| 1551 |
return TRUE; |
return TRUE; |
| 1552 |
|
|
| 1553 |
case IDCANCEL: |
case IDCANCEL: |
| 1554 |
SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)OrigHostnameEditProc); |
SetWindowLong(hwndHostnameEdit, GWL_WNDPROC, (LONG)OrigHostnameEditProc); |
| 1555 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
|
#if 0 |
|
|
if (DlgHostFont != NULL) { |
|
|
DeleteObject(DlgHostFont); |
|
|
} |
|
|
#endif |
|
| 1556 |
return TRUE; |
return TRUE; |
| 1557 |
|
|
| 1558 |
case IDC_HOSTTCPIP: |
case IDC_HOSTTCPIP: |
| 2445 |
static BOOL CALLBACK TTXAboutDlg(HWND dlg, UINT msg, WPARAM wParam, |
static BOOL CALLBACK TTXAboutDlg(HWND dlg, UINT msg, WPARAM wParam, |
| 2446 |
LPARAM lParam) |
LPARAM lParam) |
| 2447 |
{ |
{ |
|
// LOGFONTA logfont; |
|
|
// HFONT font; |
|
|
|
|
| 2448 |
switch (msg) { |
switch (msg) { |
| 2449 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
|
#if 0 |
|
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
|
|
GetObject(font, sizeof(LOGFONT), &logfont); |
|
|
if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgAboutFont, pvar)) { |
|
|
SendDlgItemMessage(dlg, IDC_TTSSH_VERSION, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHVERSIONS, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_INCLUDES, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_OPENSSL_VERSION, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_ZLIB_VERSION, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_PUTTY_VERSION, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE, 0)); |
|
|
SendDlgItemMessage(dlg, IDC_WEBSITES, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE, 0)); |
|
|
SendDlgItemMessage(dlg, IDC_CRYPTOGRAPHY, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_CREDIT, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_FP_HASH_ALG, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE, 0)); |
|
|
SendDlgItemMessage(dlg, IDC_FP_HASH_ALG_MD5, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE, 0)); |
|
|
SendDlgItemMessage(dlg, IDC_FP_HASH_ALG_SHA256, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE, 0)); |
|
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0)); |
|
|
} |
|
|
else { |
|
|
DlgAboutFont = NULL; |
|
|
} |
|
|
#endif |
|
|
|
|
| 2450 |
// Edit controlは等幅フォントで表示したいので、別設定情報からフォントをセットする。 |
// Edit controlは等幅フォントで表示したいので、別設定情報からフォントをセットする。 |
| 2451 |
// (2014.5.5. yutaka) |
// (2014.5.5. yutaka) |
| 2452 |
if (!UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, NULL, &DlgAboutTextFont, pvar)) { |
if (!UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, NULL, &DlgAboutTextFont, pvar)) { |
| 2495 |
switch (LOWORD(wParam)) { |
switch (LOWORD(wParam)) { |
| 2496 |
case IDOK: |
case IDOK: |
| 2497 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
|
#if 0 |
|
|
if (DlgAboutFont != NULL) { |
|
|
DeleteObject(DlgAboutFont); |
|
|
} |
|
|
#endif |
|
| 2498 |
if (DlgAboutTextFont != NULL) { |
if (DlgAboutTextFont != NULL) { |
| 2499 |
DeleteObject(DlgAboutTextFont); |
DeleteObject(DlgAboutTextFont); |
| 2500 |
} |
} |
| 2502 |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
| 2503 |
UI things can send this message */ |
UI things can send this message */ |
| 2504 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
|
#if 0 |
|
|
if (DlgAboutFont != NULL) { |
|
|
DeleteObject(DlgAboutFont); |
|
|
} |
|
|
#endif |
|
| 2505 |
if (DlgAboutTextFont != NULL) { |
if (DlgAboutTextFont != NULL) { |
| 2506 |
DeleteObject(DlgAboutTextFont); |
DeleteObject(DlgAboutTextFont); |
| 2507 |
} |
} |
| 3254 |
static BOOL CALLBACK TTXSetupDlg(HWND dlg, UINT msg, WPARAM wParam, |
static BOOL CALLBACK TTXSetupDlg(HWND dlg, UINT msg, WPARAM wParam, |
| 3255 |
LPARAM lParam) |
LPARAM lParam) |
| 3256 |
{ |
{ |
|
// LOGFONT logfont; |
|
|
// HFONT font; |
|
|
|
|
| 3257 |
switch (msg) { |
switch (msg) { |
| 3258 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
| 3259 |
SetWindowLong(dlg, DWL_USER, lParam); |
SetWindowLong(dlg, DWL_USER, lParam); |
| 3260 |
init_setup_dlg((PTInstVar) lParam, dlg); |
init_setup_dlg((PTInstVar) lParam, dlg); |
|
#if 0 |
|
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
|
|
GetObject(font, sizeof(LOGFONT), &logfont); |
|
|
if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgSetupFont, pvar)) { |
|
|
SendDlgItemMessage(dlg, IDC_COMPRESSLABEL, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_COMPRESSNONE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_COMPRESSHIGH, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_COMPRESSNOTE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_CIPHERORDER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHCIPHERPREFS, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHMOVECIPHERUP, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHMOVECIPHERDOWN, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_KEX_ORDER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHKEX_LIST, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHKEX_MOVEUP, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHKEX_MOVEDOWN, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_HOST_KEY_ORDER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHHOST_KEY_LIST, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHHOST_KEY_MOVEUP, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHHOST_KEY_MOVEDOWN, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_MAC_ORDER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHMAC_LIST, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHMAC_MOVEUP, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHMAC_MOVEDOWN, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_COMP_ORDER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHCOMP_LIST, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHCOMP_MOVEUP, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SSHCOMP_MOVEDOWN, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_CHOOSEREADWRITEFILE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_READWRITEFILENAME, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_CHOOSEREADONLYFILE, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_READONLYFILENAME, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_KNOWNHOSTS, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HEARTBEATLABEL, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HEARTBEAT_EDIT, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_HEARTBEATLABEL2, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_REMEMBERPASSWORD, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_FORWARDAGENT, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_FORWARDAGENTCONFIRM, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_FORWARDAGENTNOTIFY, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_VERIFYHOSTKEYDNS, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_NOTICEBANNER, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDCANCEL, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE,0)); |
|
|
|
|
|
SendDlgItemMessage(dlg, IDC_HOSTKEY_ROTATION_STATIC, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE, 0)); |
|
|
SendDlgItemMessage(dlg, IDC_HOSTKEY_ROTATION_COMBO, WM_SETFONT, (WPARAM)DlgSetupFont, MAKELPARAM(TRUE, 0)); |
|
|
} |
|
|
else { |
|
|
DlgSetupFont = NULL; |
|
|
} |
|
|
#endif |
|
| 3261 |
|
|
| 3262 |
CenterWindow(dlg, GetParent(dlg)); |
CenterWindow(dlg, GetParent(dlg)); |
| 3263 |
|
|
| 3267 |
case IDOK: |
case IDOK: |
| 3268 |
complete_setup_dlg((PTInstVar) GetWindowLong(dlg, DWL_USER), dlg); |
complete_setup_dlg((PTInstVar) GetWindowLong(dlg, DWL_USER), dlg); |
| 3269 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
|
#if 0 |
|
|
if (DlgSetupFont != NULL) { |
|
|
DeleteObject(DlgSetupFont); |
|
|
} |
|
|
#endif |
|
| 3270 |
return TRUE; |
return TRUE; |
| 3271 |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
case IDCANCEL: /* there isn't a cancel button, but other Windows |
| 3272 |
UI things can send this message */ |
UI things can send this message */ |
| 3273 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
|
#if 0 |
|
|
if (DlgSetupFont != NULL) { |
|
|
DeleteObject(DlgSetupFont); |
|
|
} |
|
|
#endif |
|
| 3274 |
return TRUE; |
return TRUE; |
| 3275 |
// Cipher order |
// Cipher order |
| 3276 |
case IDC_SSHMOVECIPHERUP: |
case IDC_SSHMOVECIPHERUP: |
| 4181 |
static ssh_keytype key_type; |
static ssh_keytype key_type; |
| 4182 |
static int saved_key_bits; |
static int saved_key_bits; |
| 4183 |
char uimsg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG]; |
|
// LOGFONT logfont; |
|
|
// HFONT font; |
|
| 4184 |
|
|
| 4185 |
switch (msg) { |
switch (msg) { |
| 4186 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
| 4221 |
GetDlgItemText(dlg, IDC_BCRYPT_KDF_ROUNDS_LABEL, uimsg, sizeof(uimsg)); |
GetDlgItemText(dlg, IDC_BCRYPT_KDF_ROUNDS_LABEL, uimsg, sizeof(uimsg)); |
| 4222 |
UTIL_get_lang_msg("DLG_KEYGEN_BCRYPT_ROUNDS", pvar, uimsg); |
UTIL_get_lang_msg("DLG_KEYGEN_BCRYPT_ROUNDS", pvar, uimsg); |
| 4223 |
SetDlgItemText(dlg, IDC_BCRYPT_KDF_ROUNDS_LABEL, pvar->ts->UIMsg); |
SetDlgItemText(dlg, IDC_BCRYPT_KDF_ROUNDS_LABEL, pvar->ts->UIMsg); |
|
#if 0 |
|
|
font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0); |
|
|
GetObject(font, sizeof(LOGFONT), &logfont); |
|
|
if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgKeygenFont, pvar)) { |
|
|
SendDlgItemMessage(dlg, IDC_KEYTYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_RSA1_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_RSA_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_DSA_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_ECDSA256_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_ECDSA384_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_ECDSA521_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_ED25519_TYPE, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_KEYBITS_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_KEYBITS, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_KEY_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_CONFIRM_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_COMMENT_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_KEY_EDIT, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_CONFIRM_EDIT, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_COMMENT_EDIT, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_KEYGEN_PROGRESS_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SAVE_PUBLIC_KEY, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_SAVE_PRIVATE_KEY, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDCANCEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_BCRYPT_KDF_CHECK, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_BCRYPT_KDF_ROUNDS_LABEL, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
SendDlgItemMessage(dlg, IDC_BCRYPT_KDF_ROUNDS, WM_SETFONT, (WPARAM)DlgKeygenFont, MAKELPARAM(TRUE,0)); |
|
|
} |
|
|
else { |
|
|
DlgHostFont = NULL; |
|
|
} |
|
|
#endif |
|
| 4224 |
|
|
| 4225 |
init_password_control(pvar, dlg, IDC_KEY_EDIT, NULL); |
init_password_control(pvar, dlg, IDC_KEY_EDIT, NULL); |
| 4226 |
init_password_control(pvar, dlg, IDC_CONFIRM_EDIT, NULL); |
init_password_control(pvar, dlg, IDC_CONFIRM_EDIT, NULL); |
| 4380 |
// don't forget to free SSH resource! |
// don't forget to free SSH resource! |
| 4381 |
free_ssh_key(); |
free_ssh_key(); |
| 4382 |
EndDialog(dlg, 0); // dialog close |
EndDialog(dlg, 0); // dialog close |
|
#if 0 |
|
|
if (DlgKeygenFont != NULL) { |
|
|
DeleteObject(DlgKeygenFont); |
|
|
} |
|
|
#endif |
|
| 4383 |
return TRUE; |
return TRUE; |
| 4384 |
|
|
| 4385 |
// if radio button pressed... |
// if radio button pressed... |
|
|
Legend:
| Removed from v.7648 |
|
| changed lines |
| |
Added in v.7703 |
|
|
| |