Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/auth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2946 by maya, Thu Jan 4 08:36:42 2007 UTC revision 2949 by maya, Mon Jan 22 13:45:19 2007 UTC
# Line 650  static BOOL end_auth_dlg(PTInstVar pvar, Line 650  static BOOL end_auth_dlg(PTInstVar pvar,
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    
# Line 726  static BOOL CALLBACK auth_dlg_proc(HWND Line 732  static BOOL CALLBACK auth_dlg_proc(HWND
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 */
# Line 1406  void AUTH_get_auth_info(PTInstVar pvar, Line 1406  void AUTH_get_auth_info(PTInstVar pvar,
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)
# Line 1421  void AUTH_get_auth_info(PTInstVar pvar, Line 1428  void AUTH_get_auth_info(PTInstVar pvar,
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) {
# Line 1429  void AUTH_get_auth_info(PTInstVar pvar, Line 1442  void AUTH_get_auth_info(PTInstVar pvar,
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;
# Line 1461  void AUTH_end(PTInstVar pvar) Line 1487  void AUTH_end(PTInstVar pvar)
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   *   *

Legend:
Removed from v.2946  
changed lines
  Added in v.2949

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26