Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3028 by maya, Thu Oct 4 15:41:56 2007 UTC revision 3031 by maya, Fri Oct 5 16:04:47 2007 UTC
# Line 3474  static void PASCAL FAR TTXSetCommandLine Line 3474  static void PASCAL FAR TTXSetCommandLine
3474    
3475                          // パスワードを覚えている場合のみ、コマンドラインに渡す。(2006.8.3 yutaka)                          // パスワードを覚えている場合のみ、コマンドラインに渡す。(2006.8.3 yutaka)
3476                          if (pvar->settings.remember_password &&                          if (pvar->settings.remember_password &&
3477                                  pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {                              pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {
3478                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));
3479                                  _snprintf_s(tmp, sizeof(tmp), _TRUNCATE,                                  _snprintf_s(tmp, sizeof(tmp), _TRUNCATE,
3480                                              " /auth=password /user=%s /passwd=%s", pvar->auth_state.user, mark);                                              " /auth=password /user=%s /passwd=%s", pvar->auth_state.user, mark);
3481                                  strncat_s(cmd, cmdlen, tmp, _TRUNCATE);                                  strncat_s(cmd, cmdlen, tmp, _TRUNCATE);
3482    
3483                          } else if (pvar->settings.remember_password &&                          } else if (pvar->settings.remember_password &&
3484                                                  pvar->auth_state.cur_cred.method == SSH_AUTH_RSA) {                                     pvar->auth_state.cur_cred.method == SSH_AUTH_RSA) {
3485                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));
3486                                  _snprintf_s(tmp, sizeof(tmp), _TRUNCATE,                                  _snprintf_s(tmp, sizeof(tmp), _TRUNCATE,
3487                                              " /auth=publickey /user=%s /passwd=%s", pvar->auth_state.user, mark);                                              " /auth=publickey /user=%s /passwd=%s", pvar->auth_state.user, mark);
# Line 3491  static void PASCAL FAR TTXSetCommandLine Line 3491  static void PASCAL FAR TTXSetCommandLine
3491                                  _snprintf_s(tmp, sizeof(tmp), _TRUNCATE, " /keyfile=%s", mark);                                  _snprintf_s(tmp, sizeof(tmp), _TRUNCATE, " /keyfile=%s", mark);
3492                                  strncat_s(cmd, cmdlen, tmp, _TRUNCATE);                                  strncat_s(cmd, cmdlen, tmp, _TRUNCATE);
3493    
3494                          } else if (pvar->auth_state.cur_cred.method == SSH_AUTH_TIS) {                          } else if (pvar->settings.remember_password &&
3495                                  // keyboard-interactive認証の場合は何もしない。                                     pvar->auth_state.cur_cred.method == SSH_AUTH_TIS) {
3496                                    replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));
3497                                    _snprintf_s(tmp, sizeof(tmp), _TRUNCATE,
3498                                                " /auth=challenge /user=%s /passwd=%s", pvar->auth_state.user, mark);
3499                                    strncat_s(cmd, cmdlen, tmp, _TRUNCATE);
3500    
3501                          } else {                          } else {
3502                                  // don't come here                                  // don't come here

Legend:
Removed from v.3028  
changed lines
  Added in v.3031

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