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 7536 by zmatsuo, Mon Apr 1 12:45:02 2019 UTC revision 7560 by zmatsuo, Mon Apr 8 17:12:02 2019 UTC
# Line 54  Line 54 
54  #include "fwd.h"  #include "fwd.h"
55  #include "sftp.h"  #include "sftp.h"
56  #include "kex.h"  #include "kex.h"
57    #include "dlglib.h"
58    
59  #include <sys/types.h>  #include <sys/types.h>
60  #include <sys/stat.h>  #include <sys/stat.h>
# Line 7350  static BOOL CALLBACK passwd_change_dialo Line 7351  static BOOL CALLBACK passwd_change_dialo
7351          char new_passwd[PASSWD_MAXLEN];          char new_passwd[PASSWD_MAXLEN];
7352          char retype_passwd[PASSWD_MAXLEN];          char retype_passwd[PASSWD_MAXLEN];
7353          static struct change_password *cp;          static struct change_password *cp;
7354          LOGFONT logfont;  //      LOGFONT logfont;
7355          HFONT font;  //      HFONT font;
7356          static HFONT DlgChgPassFont;  //      static HFONT DlgChgPassFont;
7357          char uimsg[MAX_UIMSG];          char uimsg[MAX_UIMSG];
7358          static PTInstVar pvar;          static PTInstVar pvar;
7359    
# Line 7362  static BOOL CALLBACK passwd_change_dialo Line 7363  static BOOL CALLBACK passwd_change_dialo
7363                  cp = (struct change_password *)lParam;                  cp = (struct change_password *)lParam;
7364                  pvar = cp->pvar;                  pvar = cp->pvar;
7365    
7366    #if 0
7367                  font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0);                  font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0);
7368                  GetObject(font, sizeof(LOGFONT), &logfont);                  GetObject(font, sizeof(LOGFONT), &logfont);
7369    
# Line 7371  static BOOL CALLBACK passwd_change_dialo Line 7373  static BOOL CALLBACK passwd_change_dialo
7373                  else {                  else {
7374                          DlgChgPassFont = NULL;                          DlgChgPassFont = NULL;
7375                  }                  }
7376    #endif
7377    
7378                  GetWindowText(dlg, uimsg, sizeof(uimsg));                  GetWindowText(dlg, uimsg, sizeof(uimsg));
7379                  UTIL_get_lang_msg("DLG_PASSCHG_TITLE", pvar, uimsg);                  UTIL_get_lang_msg("DLG_PASSCHG_TITLE", pvar, uimsg);
# Line 7420  static BOOL CALLBACK passwd_change_dialo Line 7423  static BOOL CALLBACK passwd_change_dialo
7423                          strncpy_s(cp->new_passwd, sizeof(cp->new_passwd), new_passwd, _TRUNCATE);                          strncpy_s(cp->new_passwd, sizeof(cp->new_passwd), new_passwd, _TRUNCATE);
7424    
7425                          EndDialog(dlg, 1); // dialog close                          EndDialog(dlg, 1); // dialog close
7426    #if 0
7427                          if (DlgChgPassFont != NULL) {                          if (DlgChgPassFont != NULL) {
7428                                  DeleteObject(DlgChgPassFont);                                  DeleteObject(DlgChgPassFont);
7429                                  DlgChgPassFont = NULL;                                  DlgChgPassFont = NULL;
7430                          }                          }
7431    #endif
7432                          return TRUE;                          return TRUE;
7433    
7434                  case IDCANCEL:                  case IDCANCEL:
7435                          // 接続を切る                          // 接続を切る
7436                          notify_closed_connection(pvar, "authentication cancelled");                          notify_closed_connection(pvar, "authentication cancelled");
7437                          EndDialog(dlg, 0); // dialog close                          EndDialog(dlg, 0); // dialog close
7438    #if 0
7439                          if (DlgChgPassFont != NULL) {                          if (DlgChgPassFont != NULL) {
7440                                  DeleteObject(DlgChgPassFont);                                  DeleteObject(DlgChgPassFont);
7441                                  DlgChgPassFont = NULL;                                  DlgChgPassFont = NULL;
7442                          }                          }
7443    #endif
7444                          return TRUE;                          return TRUE;
7445                  }                  }
7446          }          }
# Line 8196  static int is_canceled_window(HWND hd) Line 8199  static int is_canceled_window(HWND hd)
8199                  return 0;                  return 0;
8200  }  }
8201    
8202    /* dlglib に全く同じものがあるのでそちらを利用する */
8203    #if 0
8204  void InitDlgProgress(HWND HDlg, int id_Progress, int *CurProgStat) {  void InitDlgProgress(HWND HDlg, int id_Progress, int *CurProgStat) {
8205          HWND HProg;          HWND HProg;
8206          HProg = GetDlgItem(HDlg, id_Progress);          HProg = GetDlgItem(HDlg, id_Progress);
# Line 8208  void InitDlgProgress(HWND HDlg, int id_P Line 8213  void InitDlgProgress(HWND HDlg, int id_P
8213    
8214          return;          return;
8215  }  }
8216    #endif
8217    
8218  static unsigned __stdcall ssh_scp_thread(void *p)  static unsigned __stdcall ssh_scp_thread(void *p)
8219  {  {

Legend:
Removed from v.7536  
changed lines
  Added in v.7560

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