| 1392 |
|
|
| 1393 |
switch (LOWORD(wParam)) { |
switch (LOWORD(wParam)) { |
| 1394 |
case IDC_CONTINUE: |
case IDC_CONTINUE: |
| 1395 |
|
// 認証中にサーバから切断された場合は、キャンセル扱いとする。(2014.3.31 yutaka) |
| 1396 |
|
if (!pvar->cv->Ready) { |
| 1397 |
|
goto canceled; |
| 1398 |
|
} |
| 1399 |
|
|
| 1400 |
if (IsDlgButtonChecked(dlg, IDC_ADDTOKNOWNHOSTS)) { |
if (IsDlgButtonChecked(dlg, IDC_ADDTOKNOWNHOSTS)) { |
| 1401 |
add_host_key(pvar); |
add_host_key(pvar); |
| 1402 |
} |
} |
| 1418 |
return TRUE; |
return TRUE; |
| 1419 |
|
|
| 1420 |
case IDCANCEL: /* kill the connection */ |
case IDCANCEL: /* kill the connection */ |
| 1421 |
|
canceled: |
| 1422 |
pvar->hosts_state.hosts_dialog = NULL; |
pvar->hosts_state.hosts_dialog = NULL; |
| 1423 |
notify_closed_connection(pvar); |
notify_closed_connection(pvar); |
| 1424 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
| 1541 |
|
|
| 1542 |
switch (LOWORD(wParam)) { |
switch (LOWORD(wParam)) { |
| 1543 |
case IDC_CONTINUE: |
case IDC_CONTINUE: |
| 1544 |
|
// 認証中にサーバから切断された場合は、キャンセル扱いとする。(2014.3.31 yutaka) |
| 1545 |
|
if (!pvar->cv->Ready) { |
| 1546 |
|
goto canceled; |
| 1547 |
|
} |
| 1548 |
|
|
| 1549 |
if (IsDlgButtonChecked(dlg, IDC_ADDTOKNOWNHOSTS)) { |
if (IsDlgButtonChecked(dlg, IDC_ADDTOKNOWNHOSTS)) { |
| 1550 |
add_host_key(pvar); |
add_host_key(pvar); |
| 1551 |
delete_different_key(pvar); |
delete_different_key(pvar); |
| 1568 |
return TRUE; |
return TRUE; |
| 1569 |
|
|
| 1570 |
case IDCANCEL: /* kill the connection */ |
case IDCANCEL: /* kill the connection */ |
| 1571 |
|
canceled: |
| 1572 |
pvar->hosts_state.hosts_dialog = NULL; |
pvar->hosts_state.hosts_dialog = NULL; |
| 1573 |
notify_closed_connection(pvar); |
notify_closed_connection(pvar); |
| 1574 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |
| 1694 |
|
|
| 1695 |
switch (LOWORD(wParam)) { |
switch (LOWORD(wParam)) { |
| 1696 |
case IDC_CONTINUE: |
case IDC_CONTINUE: |
| 1697 |
|
// 認証中にサーバから切断された場合は、キャンセル扱いとする。(2014.3.31 yutaka) |
| 1698 |
|
if (!pvar->cv->Ready) { |
| 1699 |
|
goto canceled; |
| 1700 |
|
} |
| 1701 |
|
|
| 1702 |
if (IsDlgButtonChecked(dlg, IDC_ADDTOKNOWNHOSTS)) { |
if (IsDlgButtonChecked(dlg, IDC_ADDTOKNOWNHOSTS)) { |
| 1703 |
add_host_key(pvar); |
add_host_key(pvar); |
| 1704 |
} |
} |
| 1720 |
return TRUE; |
return TRUE; |
| 1721 |
|
|
| 1722 |
case IDCANCEL: /* kill the connection */ |
case IDCANCEL: /* kill the connection */ |
| 1723 |
|
canceled: |
| 1724 |
pvar->hosts_state.hosts_dialog = NULL; |
pvar->hosts_state.hosts_dialog = NULL; |
| 1725 |
notify_closed_connection(pvar); |
notify_closed_connection(pvar); |
| 1726 |
EndDialog(dlg, 0); |
EndDialog(dlg, 0); |