| 650 |
} |
} |
| 651 |
|
|
| 652 |
EndDialog(dlg, 1); |
EndDialog(dlg, 1); |
| 653 |
|
#ifdef I18N |
| 654 |
|
if (DlgAuthFont != NULL) { |
| 655 |
|
DeleteObject(DlgAuthFont); |
| 656 |
|
} |
| 657 |
|
#endif |
| 658 |
|
|
| 659 |
return TRUE; |
return TRUE; |
| 660 |
} |
} |
| 661 |
|
|
| 732 |
return FALSE; |
return FALSE; |
| 733 |
} |
} |
| 734 |
|
|
|
#ifdef I18N |
|
|
if (DlgAuthFont != NULL) { |
|
|
DeleteObject(DlgAuthFont); |
|
|
} |
|
|
#endif |
|
|
|
|
| 735 |
return end_auth_dlg(pvar, dlg); |
return end_auth_dlg(pvar, dlg); |
| 736 |
|
|
| 737 |
case IDCANCEL: /* kill the connection */ |
case IDCANCEL: /* kill the connection */ |
| 1406 |
strncpy(dest, "None", len); |
strncpy(dest, "None", len); |
| 1407 |
} else if (pvar->auth_state.cur_cred.method != SSH_AUTH_NONE) { |
} else if (pvar->auth_state.cur_cred.method != SSH_AUTH_NONE) { |
| 1408 |
if (SSHv1(pvar)) { |
if (SSHv1(pvar)) { |
| 1409 |
|
#ifdef I18N |
| 1410 |
|
strcpy(pvar->ts->UIMsg, "User '%s', using %s"); |
| 1411 |
|
UTIL_get_lang_msg("DLG_ABOUT_AUTH_INFO", pvar); |
| 1412 |
|
_snprintf(dest, len, pvar->ts->UIMsg, pvar->auth_state.user, |
| 1413 |
|
get_auth_method_name(pvar->auth_state.cur_cred.method)); |
| 1414 |
|
#else |
| 1415 |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, |
| 1416 |
get_auth_method_name(pvar->auth_state.cur_cred.method)); |
get_auth_method_name(pvar->auth_state.cur_cred.method)); |
| 1417 |
|
#endif |
| 1418 |
|
|
| 1419 |
} else { |
} else { |
| 1420 |
// SSH2:認証メソッドの判別 (2004.12.23 yutaka) |
// SSH2:認証メソッドの判別 (2004.12.23 yutaka) |
| 1428 |
} else { |
} else { |
| 1429 |
method = get_auth_method_name(pvar->auth_state.cur_cred.method); |
method = get_auth_method_name(pvar->auth_state.cur_cred.method); |
| 1430 |
} |
} |
| 1431 |
|
#ifdef I18N |
| 1432 |
|
strcpy(pvar->ts->UIMsg, "User '%s', using %s"); |
| 1433 |
|
UTIL_get_lang_msg("DLG_ABOUT_AUTH_INFO", pvar); |
| 1434 |
|
_snprintf(dest, len, pvar->ts->UIMsg, pvar->auth_state.user, method); |
| 1435 |
|
#else |
| 1436 |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, method); |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, method); |
| 1437 |
|
#endif |
| 1438 |
|
|
| 1439 |
} else { |
} else { |
| 1440 |
if (pvar->auth_state.cur_cred.key_pair->RSA_key != NULL) { |
if (pvar->auth_state.cur_cred.key_pair->RSA_key != NULL) { |
| 1442 |
} else if (pvar->auth_state.cur_cred.key_pair->DSA_key != NULL) { |
} else if (pvar->auth_state.cur_cred.key_pair->DSA_key != NULL) { |
| 1443 |
method = "DSA"; |
method = "DSA"; |
| 1444 |
} |
} |
| 1445 |
|
#ifdef I18N |
| 1446 |
|
strcpy(pvar->ts->UIMsg, "User '%s', using %s"); |
| 1447 |
|
UTIL_get_lang_msg("DLG_ABOUT_AUTH_INFO", pvar); |
| 1448 |
|
_snprintf(dest, len, pvar->ts->UIMsg, pvar->auth_state.user, method); |
| 1449 |
|
#else |
| 1450 |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, method); |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, method); |
| 1451 |
|
#endif |
| 1452 |
} |
} |
| 1453 |
|
|
| 1454 |
} |
} |
| 1455 |
|
|
| 1456 |
} else { |
} else { |
| 1457 |
|
#ifdef I18N |
| 1458 |
|
strcpy(pvar->ts->UIMsg, "User '%s', using %s"); |
| 1459 |
|
UTIL_get_lang_msg("DLG_ABOUT_AUTH_INFO", pvar); |
| 1460 |
|
_snprintf(dest, len, pvar->ts->UIMsg, pvar->auth_state.user, |
| 1461 |
|
get_auth_method_name(pvar->auth_state.failed_method)); |
| 1462 |
|
#else |
| 1463 |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, |
_snprintf(dest, len, "User '%s', using %s", pvar->auth_state.user, |
| 1464 |
get_auth_method_name(pvar->auth_state.failed_method)); |
get_auth_method_name(pvar->auth_state.failed_method)); |
| 1465 |
|
#endif |
| 1466 |
} |
} |
| 1467 |
|
|
| 1468 |
dest[len - 1] = 0; |
dest[len - 1] = 0; |
| 1487 |
|
|
| 1488 |
/* |
/* |
| 1489 |
* $Log: not supported by cvs2svn $ |
* $Log: not supported by cvs2svn $ |
| 1490 |
|
* Revision 1.25 2007/01/04 08:36:42 maya |
| 1491 |
|
* フォントを変更する部分を追加した。 |
| 1492 |
|
* |
| 1493 |
* Revision 1.24 2006/12/06 14:31:13 maya |
* Revision 1.24 2006/12/06 14:31:13 maya |
| 1494 |
* 表示メッセージの読み込み対応 |
* 表示メッセージの読み込み対応 |
| 1495 |
* |
* |