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 6135 by maya, Sun Nov 15 13:27:58 2015 UTC revision 6140 by doda, Mon Nov 16 11:58:56 2015 UTC
# Line 1701  static void FAR PASCAL TTXParseParam(PCH Line 1701  static void FAR PASCAL TTXParseParam(PCH
1701    
1702          cur = start;          cur = start;
1703          while (next = GetParam(option, opt_len, cur)) {          while (next = GetParam(option, opt_len, cur)) {
1704                    DequoteParam(option, opt_len, option);
1705                  action = OPTION_NONE;                  action = OPTION_NONE;
1706    
1707                  if ((option[0] == '-' || option[0] == '/')) {                  if ((option[0] == '-' || option[0] == '/')) {
1708                          if (MATCH_STR(option + 1, "ssh") == 0) {                          if (MATCH_STR(option + 1, "ssh") == 0) {
1709                                  if (MATCH_STR(option + 4, "-f=") == 0) {                                  if (MATCH_STR(option + 4, "-f=") == 0) {
1710                                          DequoteParam(option2, opt_len, option + 7);                                          strncpy_s(option2, opt_len, option + 7, _TRUNCATE);
1711                                          read_ssh_options_from_user_file(pvar, option2);                                          read_ssh_options_from_user_file(pvar, option2);
1712                                          action = OPTION_CLEAR;                                          action = OPTION_CLEAR;
1713                                  } else if (MATCH_STR(option + 4, "-consume=") == 0) {                                  } else if (MATCH_STR(option + 4, "-consume=") == 0) {
1714                                          DequoteParam(option2, opt_len, option + 13);                                          strncpy_s(option2, opt_len, option + 13, _TRUNCATE);
1715                                          read_ssh_options_from_user_file(pvar, option2);                                          read_ssh_options_from_user_file(pvar, option2);
1716                                          DeleteFile(option2);                                          DeleteFile(option2);
1717                                          action = OPTION_CLEAR;                                          action = OPTION_CLEAR;
# Line 1718  static void FAR PASCAL TTXParseParam(PCH Line 1719  static void FAR PASCAL TTXParseParam(PCH
1719    
1720                          // ttermpro.exe の /F= 指定でも TTSSH の設定を読む (2006.10.11 maya)                          // ttermpro.exe の /F= 指定でも TTSSH の設定を読む (2006.10.11 maya)
1721                          } else if (MATCH_STR_I(option + 1, "f=") == 0) {                          } else if (MATCH_STR_I(option + 1, "f=") == 0) {
1722                                  DequoteParam(option2, opt_len, option + 3);                                  strncpy_s(option2, opt_len, option + 3, _TRUNCATE);
1723                                  read_ssh_options_from_user_file(pvar, option2);                                  read_ssh_options_from_user_file(pvar, option2);
1724                                  // Tera Term側でも解釈する必要があるので消さない                                  // Tera Term側でも解釈する必要があるので消さない
1725                          }                          }
# Line 1739  static void FAR PASCAL TTXParseParam(PCH Line 1740  static void FAR PASCAL TTXParseParam(PCH
1740    
1741          cur = start;          cur = start;
1742          while (next = GetParam(option, opt_len, cur)) {          while (next = GetParam(option, opt_len, cur)) {
1743                    DequoteParam(option, opt_len, option);
1744                  action = OPTION_NONE;                  action = OPTION_NONE;
1745    
1746                  if ((option[0] == '-' || option[0] == '/')) {                  if ((option[0] == '-' || option[0] == '/')) {
# Line 1904  static void FAR PASCAL TTXParseParam(PCH Line 1906  static void FAR PASCAL TTXParseParam(PCH
1906                                  }                                  }
1907    
1908                          } else if (MATCH_STR(option + 1, "user=") == 0) {                          } else if (MATCH_STR(option + 1, "user=") == 0) {
1909                                  DequoteParam(option2, opt_len, option + 6);                                  _snprintf_s(pvar->ssh2_username, sizeof(pvar->ssh2_username), _TRUNCATE, "%s", option+6);
                                 _snprintf_s(pvar->ssh2_username, sizeof(pvar->ssh2_username), _TRUNCATE, "%s", option2);  
1910    
1911                          } else if (MATCH_STR(option + 1, "passwd=") == 0) {                          } else if (MATCH_STR(option + 1, "passwd=") == 0) {
1912                                  DequoteParam(option2, opt_len, option + 8);                                  _snprintf_s(pvar->ssh2_password, sizeof(pvar->ssh2_password), _TRUNCATE, "%s", option+8);
                                 _snprintf_s(pvar->ssh2_password, sizeof(pvar->ssh2_password), _TRUNCATE, "%s", option2);  
1913    
1914                          } else if (MATCH_STR(option + 1, "keyfile=") == 0) {                          } else if (MATCH_STR(option + 1, "keyfile=") == 0) {
1915                                  DequoteParam(option2, opt_len, option + 9);                                  _snprintf_s(pvar->ssh2_keyfile, sizeof(pvar->ssh2_keyfile), _TRUNCATE, "%s", option+9);
                                 _snprintf_s(pvar->ssh2_keyfile, sizeof(pvar->ssh2_keyfile), _TRUNCATE, "%s", option2);  
1916    
1917                          } else if (MATCH_STR(option + 1, "ask4passwd") == 0) {                          } else if (MATCH_STR(option + 1, "ask4passwd") == 0) {
1918                                  // パスワードを聞く (2006.9.18 maya)                                  // パスワードを聞く (2006.9.18 maya)

Legend:
Removed from v.6135  
changed lines
  Added in v.6140

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