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 7592 by zmatsuo, Wed Apr 17 15:08:42 2019 UTC revision 7605 by zmatsuo, Mon Apr 22 16:18:08 2019 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 1998-2001, Robert O'Callahan   * Copyright (c) 1998-2001, Robert O'Callahan
3   * (C) 2004-2017 TeraTerm Project   * (C) 2004-2019 TeraTerm Project
4   * All rights reserved.   * All rights reserved.
5   *   *
6   * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
# Line 42  Line 42 
42  #include "ttlib.h"  #include "ttlib.h"
43  #include "keyfiles.h"  #include "keyfiles.h"
44  #include "arc4random.h"  #include "arc4random.h"
45    #include "auth.h"
46    
47  #include <stdlib.h>  #include <stdlib.h>
48  #include <stdio.h>  #include <stdio.h>
# Line 4163  static void keygen_progress(int phase, i Line 4164  static void keygen_progress(int phase, i
4164          return;          return;
4165  }  }
4166    
 static void init_password_control(HWND dlg, int item)  
 {  
         HWND passwordControl = GetDlgItem(dlg, item);  
   
         SetWindowLong(passwordControl, GWL_USERDATA,  
                       SetWindowLong(passwordControl, GWL_WNDPROC,  
                                     (LONG) password_wnd_proc));  
 }  
   
4167  // bcrypt KDF形式で秘密鍵を保存する  // bcrypt KDF形式で秘密鍵を保存する
4168  // based on OpenSSH 6.5:key_save_private(), key_private_to_blob2()  // based on OpenSSH 6.5:key_save_private(), key_private_to_blob2()
4169  static void save_bcrypt_private_key(char *passphrase, char *filename, char *comment, HWND dlg, PTInstVar pvar, int rounds)  static void save_bcrypt_private_key(char *passphrase, char *filename, char *comment, HWND dlg, PTInstVar pvar, int rounds)
# Line 4406  static BOOL CALLBACK TTXKeyGenerator(HWN Line 4398  static BOOL CALLBACK TTXKeyGenerator(HWN
4398                  }                  }
4399  #endif  #endif
4400    
4401                  init_password_control(dlg, IDC_KEY_EDIT);                  init_password_control(pvar, dlg, IDC_KEY_EDIT);
4402                  init_password_control(dlg, IDC_CONFIRM_EDIT);                  init_password_control(pvar, dlg, IDC_CONFIRM_EDIT);
4403    
4404                  // default key type                  // default key type
4405                  SendMessage(GetDlgItem(dlg, IDC_RSA_TYPE), BM_SETCHECK, BST_CHECKED, 0);                  SendMessage(GetDlgItem(dlg, IDC_RSA_TYPE), BM_SETCHECK, BST_CHECKED, 0);

Legend:
Removed from v.7592  
changed lines
  Added in v.7605

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