Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/key.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 27  Line 27 
27   */   */
28  #include "key.h"  #include "key.h"
29  #include "resource.h"  #include "resource.h"
30    #include "dlglib.h"
31    
32  #include <openssl/rsa.h>  #include <openssl/rsa.h>
33  #include <openssl/dsa.h>  #include <openssl/dsa.h>
34  #include <openssl/ecdsa.h>  #include <openssl/ecdsa.h>
35  #include <openssl/buffer.h>  #include <openssl/buffer.h>
36    
37    #undef DialogBoxParam
38    #define DialogBoxParam(p1,p2,p3,p4,p5) \
39            TTDialogBoxParam(p1,p2,p3,p4,p5)
40    #undef EndDialog
41    #define EndDialog(p1,p2) \
42            TTEndDialog(p1, p2)
43    
44  #define INTBLOB_LEN 20  #define INTBLOB_LEN 20
45  #define SIGBLOB_LEN (2*INTBLOB_LEN)  #define SIGBLOB_LEN (2*INTBLOB_LEN)
46    
# Line 2188  static void hosts_updatekey_dlg_set_fing Line 2196  static void hosts_updatekey_dlg_set_fing
2196    
2197  static BOOL CALLBACK hosts_updatekey_dlg_proc(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam)  static BOOL CALLBACK hosts_updatekey_dlg_proc(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam)
2198  {  {
2199          static HFONT DlgHostsAddFont;  //      static HFONT DlgHostsAddFont;
2200          PTInstVar pvar;          PTInstVar pvar;
2201          LOGFONT logfont;  //      LOGFONT logfont;
2202          HFONT font;  //      HFONT font;
2203          char buf[1024];          char buf[1024];
2204          char *host;          char *host;
2205          struct hostkeys_update_ctx *ctx;          struct hostkeys_update_ctx *ctx;
# Line 2239  static BOOL CALLBACK hosts_updatekey_dlg Line 2247  static BOOL CALLBACK hosts_updatekey_dlg
2247                  GetDlgItemText(dlg, IDCANCEL, uimsg, sizeof(uimsg));                  GetDlgItemText(dlg, IDCANCEL, uimsg, sizeof(uimsg));
2248                  UTIL_get_lang_msg("BTN_NO", pvar, uimsg);                  UTIL_get_lang_msg("BTN_NO", pvar, uimsg);
2249                  SetDlgItemText(dlg, IDCANCEL, pvar->ts->UIMsg);                  SetDlgItemText(dlg, IDCANCEL, pvar->ts->UIMsg);
2250    #if 0
2251                  font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0);                  font = (HFONT)SendMessage(dlg, WM_GETFONT, 0, 0);
2252                  GetObject(font, sizeof(LOGFONT), &logfont);                  GetObject(font, sizeof(LOGFONT), &logfont);
2253                  if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgHostsAddFont, pvar)) {                  if (UTIL_get_lang_font("DLG_TAHOMA_FONT", dlg, &logfont, &DlgHostsAddFont, pvar)) {
# Line 2257  static BOOL CALLBACK hosts_updatekey_dlg Line 2265  static BOOL CALLBACK hosts_updatekey_dlg
2265                  else {                  else {
2266                          DlgHostsAddFont = NULL;                          DlgHostsAddFont = NULL;
2267                  }                  }
2268    #endif
2269                  return TRUE;                    /* because we do not set the focus */                  return TRUE;                    /* because we do not set the focus */
2270    
2271          case WM_COMMAND:          case WM_COMMAND:
# Line 2267  static BOOL CALLBACK hosts_updatekey_dlg Line 2275  static BOOL CALLBACK hosts_updatekey_dlg
2275                  case IDOK:                  case IDOK:
2276    
2277                          EndDialog(dlg, 1);                          EndDialog(dlg, 1);
2278    #if 0
2279                          if (DlgHostsAddFont != NULL) {                          if (DlgHostsAddFont != NULL) {
2280                                  DeleteObject(DlgHostsAddFont);                                  DeleteObject(DlgHostsAddFont);
2281                          }                          }
2282    #endif
2283                          return TRUE;                          return TRUE;
2284    
2285                  case IDCANCEL:                  /* kill the connection */                  case IDCANCEL:                  /* kill the connection */
2286                          EndDialog(dlg, 0);                          EndDialog(dlg, 0);
2287    #if 0
2288                          if (DlgHostsAddFont != NULL) {                          if (DlgHostsAddFont != NULL) {
2289                                  DeleteObject(DlgHostsAddFont);                                  DeleteObject(DlgHostsAddFont);
2290                          }                          }
2291    #endif
2292                          return TRUE;                          return TRUE;
2293    
2294                  case IDC_FP_HASH_ALG_MD5:                  case IDC_FP_HASH_ALG_MD5:

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