Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 6657 by doda, Thu Mar 23 12:55:00 2017 UTC revision 6658 by doda, Thu Mar 23 12:55:03 2017 UTC
# Line 6455  static BOOL handle_SSH2_service_accept(P Line 6455  static BOOL handle_SSH2_service_accept(P
6455                  // Pageant                  // Pageant
6456                  SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_PK_OK);                  SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_PK_OK);
6457          }          }
6458            else if (pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {
6459                    SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ);
6460            }
6461          SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_SUCCESS);          SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_SUCCESS);
6462          SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_FAILURE);          SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_FAILURE);
6463          SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_BANNER);          SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_BANNER);
6464          SSH2_dispatch_add_message(SSH2_MSG_DEBUG);  // support for authorized_keys command (2006.2.23 yutaka)          SSH2_dispatch_add_message(SSH2_MSG_DEBUG);  // support for authorized_keys command (2006.2.23 yutaka)
6465    
         // XXX: パスワード変更対応。  
         // ただし、OpenSSHやOpenSolaris(SSH-2.0-Sun_SSH_1.3)では、このメッセージを送ってこないため、  
         // 未評価。ゆえに、実装はしたが、開放はしない。  
         // (2010.11.11 yutaka)  
 #if 0  
         SSH2_dispatch_add_message(SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ);  
 #endif  
6466    
6467          return do_SSH2_authrequest(pvar);          return do_SSH2_authrequest(pvar);
6468  }  }
# Line 7008  BOOL handle_SSH2_userauth_msg60(PTInstVa Line 7004  BOOL handle_SSH2_userauth_msg60(PTInstVa
7004                  return handle_SSH2_userauth_pkok(pvar);                  return handle_SSH2_userauth_pkok(pvar);
7005          }          }
7006          else if (pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {          else if (pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {
7007                  // TODO                  return handle_SSH2_userauth_passwd_changereq(pvar);
                 // return handle_SSH2_userauth_passwd_changereq(pvar) {  
                 return FALSE;  
7008          }          }
7009          else {          else {
7010                  return FALSE;                  return FALSE;
# Line 7235  struct change_password { Line 7229  struct change_password {
7229  static BOOL CALLBACK passwd_change_dialog(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam)  static BOOL CALLBACK passwd_change_dialog(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam)
7230  {  {
7231          char retype_passwd[PASSWD_MAXLEN];          char retype_passwd[PASSWD_MAXLEN];
7232          struct change_password *cp = (struct change_password *)lParam;          static struct change_password *cp;
7233    
7234          switch (msg) {          switch (msg) {
7235          case WM_INITDIALOG:          case WM_INITDIALOG:
7236                    cp = (struct change_password *)lParam;
7237                  return TRUE;                  return TRUE;
7238    
7239          case WM_COMMAND:          case WM_COMMAND:

Legend:
Removed from v.6657  
changed lines
  Added in v.6658

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