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 5113 by doda, Tue Jan 8 11:15:57 2013 UTC revision 5261 by doda, Mon May 13 05:37:00 2013 UTC
# Line 457  static void read_ssh_options(PTInstVar p Line 457  static void read_ssh_options(PTInstVar p
457          // ホスト鍵の DNS でのチェック (RFC 4255)          // ホスト鍵の DNS でのチェック (RFC 4255)
458          settings->VerifyHostKeyDNS = read_BOOL_option(fileName, "VerifyHostKeyDNS", TRUE);          settings->VerifyHostKeyDNS = read_BOOL_option(fileName, "VerifyHostKeyDNS", TRUE);
459    
460            // icon
461            GetPrivateProfileString("TTSSH", "SSHIcon", "", buf, sizeof(buf), fileName);
462            if ((_stricmp(buf, "old") == 0) ||
463                (_stricmp(buf, "yellow") == 0) ||
464                (_stricmp(buf, "securett_yellow") == 0)) {
465                    settings->IconID = IDI_SECURETT_YELLOW;
466            }
467            else {
468                    settings->IconID = IDI_SECURETT;
469            }
470    
471          clear_local_settings(pvar);          clear_local_settings(pvar);
472  }  }
473    
# Line 764  void notify_established_secure_connectio Line 775  void notify_established_secure_connectio
775          // LoadIcon ではなく LoadImage を使うようにし、          // LoadIcon ではなく LoadImage を使うようにし、
776          // 16x16 のアイコンを明示的に取得するようにした (2006.8.9 maya)          // 16x16 のアイコンを明示的に取得するようにした (2006.8.9 maya)
777          if (SecureLargeIcon == NULL) {          if (SecureLargeIcon == NULL) {
778                  SecureLargeIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),                  SecureLargeIcon = LoadImage(hInst, MAKEINTRESOURCE(pvar->settings.IconID),
779                                              IMAGE_ICON, 0, 0, fuLoad);                                              IMAGE_ICON, 0, 0, fuLoad);
780          }          }
781          if (SecureSmallIcon == NULL) {          if (SecureSmallIcon == NULL) {
782                  SecureSmallIcon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),                  SecureSmallIcon = LoadImage(hInst, MAKEINTRESOURCE(pvar->settings.IconID),
783                                              IMAGE_ICON, 16, 16, fuLoad);                                              IMAGE_ICON, 16, 16, fuLoad);
784          }          }
785    
# Line 1671  static int parse_option(PTInstVar pvar, Line 1682  static int parse_option(PTInstVar pvar,
1682                                  pvar->settings.CompressionLevel = 6;                                  pvar->settings.CompressionLevel = 6;
1683                          } else if (MATCH_STR(option + 4, "-c") == 0) {                          } else if (MATCH_STR(option + 4, "-c") == 0) {
1684                                  pvar->settings.CompressionLevel = 0;                                  pvar->settings.CompressionLevel = 0;
1685                            } else if (MATCH_STR_I(option + 4, "-icon=") == 0) {
1686                                    if ((_stricmp(option+10, "old") == 0) ||
1687                                        (_stricmp(option+10, "yellow") == 0) ||
1688                                        (_stricmp(option+10, "securett_yellow") == 0)) {
1689                                            pvar->settings.IconID = IDI_SECURETT_YELLOW;
1690                                    }
1691                                    else {
1692                                            pvar->settings.IconID = IDI_SECURETT;
1693                                    }
1694    
1695                          // /ssh1 と /ssh2 オプションの新規追加 (2006.9.16 maya)                          // /ssh1 と /ssh2 オプションの新規追加 (2006.9.16 maya)
1696                          } else if (MATCH_STR(option + 4, "1") == 0) {                          } else if (MATCH_STR(option + 4, "1") == 0) {
# Line 2466  static BOOL CALLBACK TTXAboutDlg(HWND dl Line 2486  static BOOL CALLBACK TTXAboutDlg(HWND dl
2486                                  fuLoad = LR_VGACOLOR;                                  fuLoad = LR_VGACOLOR;
2487                          }                          }
2488    
2489                          hicon = LoadImage(hInst, MAKEINTRESOURCE(IDI_SECURETT),                          hicon = LoadImage(hInst, MAKEINTRESOURCE(pvar->settings.IconID),
2490                                            IMAGE_ICON, 32, 32, fuLoad);                                            IMAGE_ICON, 32, 32, fuLoad);
2491                          SendDlgItemMessage(dlg, IDC_TTSSH_ICON, STM_SETICON, (WPARAM)hicon, 0);                          SendDlgItemMessage(dlg, IDC_TTSSH_ICON, STM_SETICON, (WPARAM)hicon, 0);
2492                  }                  }

Legend:
Removed from v.5113  
changed lines
  Added in v.5261

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