Browse Subversion Repository
Diff of /trunk/ttssh2/ttxssh/hosts.c
Parent Directory
| Revision Log
| Patch
| 827 |
char buf2[2048]; |
char buf2[2048]; |
| 828 |
int i, j; |
int i, j; |
| 829 |
int ch; |
int ch; |
| 830 |
char *fp; |
char *fp = NULL; |
| 831 |
|
|
| 832 |
// static textの # 部分をホスト名に置換する |
// static textの # 部分をホスト名に置換する |
| 833 |
GetDlgItemText(dlg, IDC_HOSTWARNING, buf, sizeof(buf)); |
GetDlgItemText(dlg, IDC_HOSTWARNING, buf, sizeof(buf)); |
| 844 |
SetDlgItemText(dlg, IDC_HOSTWARNING, buf2); |
SetDlgItemText(dlg, IDC_HOSTWARNING, buf2); |
| 845 |
|
|
| 846 |
// fingerprintを設定する |
// fingerprintを設定する |
| 847 |
fp = key_fingerprint(&pvar->hosts_state.hostkey); |
fp = key_fingerprint(&pvar->hosts_state.hostkey, SSH_FP_HEX); |
| 848 |
SendMessage(GetDlgItem(dlg, IDC_FINGER_PRINT), WM_SETTEXT, 0, (LPARAM)fp); |
SendMessage(GetDlgItem(dlg, IDC_FINGER_PRINT), WM_SETTEXT, 0, (LPARAM)fp); |
| 849 |
|
free(fp); |
| 850 |
|
|
| 851 |
|
// ビジュアル化fingerprintを表示する |
| 852 |
|
fp = key_fingerprint(&pvar->hosts_state.hostkey, SSH_FP_RANDOMART); |
| 853 |
|
SendMessage(GetDlgItem(dlg, IDC_FP_RANDOMART), WM_SETTEXT, 0, (LPARAM)fp); |
| 854 |
|
SendMessage(GetDlgItem(dlg, IDC_FP_RANDOMART), WM_SETFONT, (WPARAM)GetStockObject(ANSI_FIXED_FONT), TRUE); |
| 855 |
|
free(fp); |
| 856 |
} |
} |
| 857 |
|
|
| 858 |
static int print_mp_int(char FAR * buf, unsigned char FAR * mp) |
static int print_mp_int(char FAR * buf, unsigned char FAR * mp) |
|
|
Legend:
| Removed from v.3134 |
|
| changed lines |
| |
Added in v.3137 |
|
|
| |