[BACK]Return to servconf.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/servconf.c between version 1.179 and 1.180

version 1.179, 2008/05/08 12:02:23 version 1.180, 2008/05/08 12:21:16
Line 107 
Line 107 
         options->max_startups_rate = -1;          options->max_startups_rate = -1;
         options->max_startups = -1;          options->max_startups = -1;
         options->max_authtries = -1;          options->max_authtries = -1;
           options->max_sessions = -1;
         options->banner = NULL;          options->banner = NULL;
         options->use_dns = -1;          options->use_dns = -1;
         options->client_alive_interval = -1;          options->client_alive_interval = -1;
Line 225 
Line 226 
                 options->max_startups_begin = options->max_startups;                  options->max_startups_begin = options->max_startups;
         if (options->max_authtries == -1)          if (options->max_authtries == -1)
                 options->max_authtries = DEFAULT_AUTH_FAIL_MAX;                  options->max_authtries = DEFAULT_AUTH_FAIL_MAX;
           if (options->max_sessions == -1)
                   options->max_sessions = DEFAULT_SESSIONS_MAX;
         if (options->use_dns == -1)          if (options->use_dns == -1)
                 options->use_dns = 1;                  options->use_dns = 1;
         if (options->client_alive_interval == -1)          if (options->client_alive_interval == -1)
Line 266 
Line 269 
         sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,          sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
         sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile,          sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile,
         sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem,          sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem,
         sMaxStartups, sMaxAuthTries,          sMaxStartups, sMaxAuthTries, sMaxSessions,
         sBanner, sUseDNS, sHostbasedAuthentication,          sBanner, sUseDNS, sHostbasedAuthentication,
         sHostbasedUsesNameFromPacketOnly, sClientAliveInterval,          sHostbasedUsesNameFromPacketOnly, sClientAliveInterval,
         sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2,          sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2,
Line 358 
Line 361 
         { "subsystem", sSubsystem, SSHCFG_GLOBAL },          { "subsystem", sSubsystem, SSHCFG_GLOBAL },
         { "maxstartups", sMaxStartups, SSHCFG_GLOBAL },          { "maxstartups", sMaxStartups, SSHCFG_GLOBAL },
         { "maxauthtries", sMaxAuthTries, SSHCFG_GLOBAL },          { "maxauthtries", sMaxAuthTries, SSHCFG_GLOBAL },
           { "maxsessions", sMaxSessions, SSHCFG_ALL },
         { "banner", sBanner, SSHCFG_ALL },          { "banner", sBanner, SSHCFG_ALL },
         { "usedns", sUseDNS, SSHCFG_GLOBAL },          { "usedns", sUseDNS, SSHCFG_GLOBAL },
         { "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL },          { "verifyreversemapping", sDeprecated, SSHCFG_GLOBAL },
Line 652 
Line 656 
   
         case sServerKeyBits:          case sServerKeyBits:
                 intptr = &options->server_key_bits;                  intptr = &options->server_key_bits;
 parse_int:   parse_int:
                 arg = strdelim(&cp);                  arg = strdelim(&cp);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
                         fatal("%s line %d: missing integer value.",                          fatal("%s line %d: missing integer value.",
Line 664 
Line 668 
   
         case sLoginGraceTime:          case sLoginGraceTime:
                 intptr = &options->login_grace_time;                  intptr = &options->login_grace_time;
 parse_time:   parse_time:
                 arg = strdelim(&cp);                  arg = strdelim(&cp);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
                         fatal("%s line %d: missing time value.",                          fatal("%s line %d: missing time value.",
Line 733 
Line 737 
                         fatal("%s line %d: too many host keys specified (max %d).",                          fatal("%s line %d: too many host keys specified (max %d).",
                             filename, linenum, MAX_HOSTKEYS);                              filename, linenum, MAX_HOSTKEYS);
                 charptr = &options->host_key_files[*intptr];                  charptr = &options->host_key_files[*intptr];
 parse_filename:   parse_filename:
                 arg = strdelim(&cp);                  arg = strdelim(&cp);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
                         fatal("%s line %d: missing file name.",                          fatal("%s line %d: missing file name.",
Line 776 
Line 780 
   
         case sIgnoreRhosts:          case sIgnoreRhosts:
                 intptr = &options->ignore_rhosts;                  intptr = &options->ignore_rhosts;
 parse_flag:   parse_flag:
                 arg = strdelim(&cp);                  arg = strdelim(&cp);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
                         fatal("%s line %d: missing yes/no argument.",                          fatal("%s line %d: missing yes/no argument.",
Line 1112 
Line 1116 
                 intptr = &options->max_authtries;                  intptr = &options->max_authtries;
                 goto parse_int;                  goto parse_int;
   
           case sMaxSessions:
                   intptr = &options->max_sessions;
                   goto parse_int;
   
         case sBanner:          case sBanner:
                 charptr = &options->banner;                  charptr = &options->banner;
                 goto parse_filename;                  goto parse_filename;
Line 1339 
Line 1347 
         M_CP_INTOPT(x11_display_offset);          M_CP_INTOPT(x11_display_offset);
         M_CP_INTOPT(x11_forwarding);          M_CP_INTOPT(x11_forwarding);
         M_CP_INTOPT(x11_use_localhost);          M_CP_INTOPT(x11_use_localhost);
           M_CP_INTOPT(max_sessions);
   
         M_CP_STROPT(banner);          M_CP_STROPT(banner);
         if (preauth)          if (preauth)

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180