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 5874 by maya, Sat May 16 14:45:47 2015 UTC revision 5882 by maya, Sat May 23 12:42:04 2015 UTC
# Line 1637  static void FAR PASCAL TTXParseParam(PCH Line 1637  static void FAR PASCAL TTXParseParam(PCH
1637          int param_len=strlen(param);          int param_len=strlen(param);
1638          int opt_len = param_len+1;          int opt_len = param_len+1;
1639          char *option = (char *)calloc(opt_len, sizeof(char));          char *option = (char *)calloc(opt_len, sizeof(char));
1640            char *option2 = (char *)calloc(opt_len, sizeof(char));
1641          int action;          int action;
1642          PCHAR start, cur, next;          PCHAR start, cur, next;
1643    
# Line 1654  static void FAR PASCAL TTXParseParam(PCH Line 1655  static void FAR PASCAL TTXParseParam(PCH
1655                  if ((option[0] == '-' || option[0] == '/')) {                  if ((option[0] == '-' || option[0] == '/')) {
1656                          if (MATCH_STR(option + 1, "ssh") == 0) {                          if (MATCH_STR(option + 1, "ssh") == 0) {
1657                                  if (MATCH_STR(option + 4, "-f=") == 0) {                                  if (MATCH_STR(option + 4, "-f=") == 0) {
1658                                          read_ssh_options_from_user_file(pvar, option + 7);                                          DequoteParam(option2, opt_len, option + 7);
1659                                            read_ssh_options_from_user_file(pvar, option2);
1660                                          action = OPTION_CLEAR;                                          action = OPTION_CLEAR;
1661                                  } else if (MATCH_STR(option + 4, "-consume=") == 0) {                                  } else if (MATCH_STR(option + 4, "-consume=") == 0) {
1662                                          read_ssh_options_from_user_file(pvar, option + 13);                                          DequoteParam(option2, opt_len, option + 13);
1663                                          DeleteFile(option + 13);                                          read_ssh_options_from_user_file(pvar, option2);
1664                                            DeleteFile(option2);
1665                                          action = OPTION_CLEAR;                                          action = OPTION_CLEAR;
1666                                  }                                  }
1667    
1668                          // ttermpro.exe の /F= 指定でも TTSSH の設定を読む (2006.10.11 maya)                          // ttermpro.exe の /F= 指定でも TTSSH の設定を読む (2006.10.11 maya)
1669                          } else if (MATCH_STR_I(option + 1, "f=") == 0) {                          } else if (MATCH_STR_I(option + 1, "f=") == 0) {
1670                                  read_ssh_options_from_user_file(pvar, option + 3);                                  DequoteParam(option2, opt_len, option + 3);
1671                                    read_ssh_options_from_user_file(pvar, option2);
1672                                  // Tera Term側でも解釈する必要があるので消さない                                  // Tera Term側でも解釈する必要があるので消さない
1673                          }                          }
1674                  }                  }
# Line 1832  static void FAR PASCAL TTXParseParam(PCH Line 1836  static void FAR PASCAL TTXParseParam(PCH
1836                                  }                                  }
1837    
1838                          } else if (MATCH_STR(option + 1, "user=") == 0) {                          } else if (MATCH_STR(option + 1, "user=") == 0) {
1839                                  _snprintf_s(pvar->ssh2_username, sizeof(pvar->ssh2_username), _TRUNCATE, "%s", option + 6);                                  DequoteParam(option2, opt_len, option + 6);
1840                                    _snprintf_s(pvar->ssh2_username, sizeof(pvar->ssh2_username), _TRUNCATE, "%s", option2);
1841    
1842                          } else if (MATCH_STR(option + 1, "passwd=") == 0) {                          } else if (MATCH_STR(option + 1, "passwd=") == 0) {
1843                                  _snprintf_s(pvar->ssh2_password, sizeof(pvar->ssh2_password), _TRUNCATE, "%s", option + 8);                                  DequoteParam(option2, opt_len, option + 8);
1844                                    _snprintf_s(pvar->ssh2_password, sizeof(pvar->ssh2_password), _TRUNCATE, "%s", option2);
1845    
1846                          } else if (MATCH_STR(option + 1, "keyfile=") == 0) {                          } else if (MATCH_STR(option + 1, "keyfile=") == 0) {
1847                                  _snprintf_s(pvar->ssh2_keyfile, sizeof(pvar->ssh2_keyfile), _TRUNCATE, "%s", option + 9);                                  DequoteParam(option2, opt_len, option + 9);
1848                                    _snprintf_s(pvar->ssh2_keyfile, sizeof(pvar->ssh2_keyfile), _TRUNCATE, "%s", option2);
1849    
1850                          } else if (MATCH_STR(option + 1, "ask4passwd") == 0) {                          } else if (MATCH_STR(option + 1, "ask4passwd") == 0) {
1851                                  // パスワードを聞く (2006.9.18 maya)                                  // パスワードを聞く (2006.9.18 maya)

Legend:
Removed from v.5874  
changed lines
  Added in v.5882

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