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 4621 by doda, Mon Sep 5 09:01:55 2011 UTC revision 4649 by maya, Fri Sep 23 07:52:26 2011 UTC
# Line 3982  static void keygen_progress(int phase, i Line 3982  static void keygen_progress(int phase, i
3982          return;          return;
3983  }  }
3984    
3985    static void init_password_control(HWND dlg, int item)
3986    {
3987            HWND passwordControl = GetDlgItem(dlg, item);
3988    
3989            SetWindowLong(passwordControl, GWL_USERDATA,
3990                          SetWindowLong(passwordControl, GWL_WNDPROC,
3991                                        (LONG) password_wnd_proc));
3992    }
3993    
3994  static BOOL CALLBACK TTXKeyGenerator(HWND dlg, UINT msg, WPARAM wParam,  static BOOL CALLBACK TTXKeyGenerator(HWND dlg, UINT msg, WPARAM wParam,
3995                                       LPARAM lParam)                                       LPARAM lParam)
3996  {  {
# Line 4048  static BOOL CALLBACK TTXKeyGenerator(HWN Line 4057  static BOOL CALLBACK TTXKeyGenerator(HWN
4057                          DlgHostFont = NULL;                          DlgHostFont = NULL;
4058                  }                  }
4059    
4060                    init_password_control(dlg, IDC_KEY_EDIT);
4061                    init_password_control(dlg, IDC_CONFIRM_EDIT);
4062    
4063                  // default key type                  // default key type
4064                  SendMessage(GetDlgItem(dlg, IDC_RSA_TYPE), BM_SETCHECK, BST_CHECKED, 0);                  SendMessage(GetDlgItem(dlg, IDC_RSA_TYPE), BM_SETCHECK, BST_CHECKED, 0);
4065                  key_type = KEY_RSA;                  key_type = KEY_RSA;

Legend:
Removed from v.4621  
changed lines
  Added in v.4649

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