[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.76 and 1.77

version 1.76, 2001/04/12 20:09:37 version 1.77, 2001/04/13 22:46:53
Line 99 
Line 99 
         options->max_startups = -1;          options->max_startups = -1;
         options->banner = NULL;          options->banner = NULL;
         options->reverse_mapping_check = -1;          options->reverse_mapping_check = -1;
           options->client_alive_interval = -1;
           options->client_alive_count_max = -1;
 }  }
   
 void  void
Line 201 
Line 203 
                 options->max_startups_begin = options->max_startups;                  options->max_startups_begin = options->max_startups;
         if (options->reverse_mapping_check == -1)          if (options->reverse_mapping_check == -1)
                 options->reverse_mapping_check = 0;                  options->reverse_mapping_check = 0;
           if (options->client_alive_interval == -1)
                   options->client_alive_interval = 0;
           if (options->client_alive_count_max == -1)
                   options->client_alive_count_max = 3;
 }  }
   
 /* Keyword tokens. */  /* Keyword tokens. */
Line 225 
Line 231 
         sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile,          sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile,
         sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups,          sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups,
         sBanner, sReverseMappingCheck, sHostbasedAuthentication,          sBanner, sReverseMappingCheck, sHostbasedAuthentication,
         sHostbasedUsesNameFromPacketOnly          sHostbasedUsesNameFromPacketOnly, sClientAliveInterval,
           sClientAliveCountMax
 } ServerOpCodes;  } ServerOpCodes;
   
 /* Textual representation of the tokens. */  /* Textual representation of the tokens. */
Line 289 
Line 296 
         { "maxstartups", sMaxStartups },          { "maxstartups", sMaxStartups },
         { "banner", sBanner },          { "banner", sBanner },
         { "reversemappingcheck", sReverseMappingCheck },          { "reversemappingcheck", sReverseMappingCheck },
           { "clientaliveinterval", sClientAliveInterval },
           { "clientalivecountmax", sClientAliveCountMax },
         { NULL, 0 }          { NULL, 0 }
 };  };
   
Line 792 
Line 801 
                 case sBanner:                  case sBanner:
                         charptr = &options->banner;                          charptr = &options->banner;
                         goto parse_filename;                          goto parse_filename;
                   case sClientAliveInterval:
                           intptr = &options->client_alive_interval;
                           goto parse_int;
                   case sClientAliveCountMax:
                           intptr = &options->client_alive_count_max;
                           goto parse_int;
                 default:                  default:
                         fprintf(stderr, "%s line %d: Missing handler for opcode %s (%d)\n",                          fprintf(stderr, "%s line %d: Missing handler for opcode %s (%d)\n",
                                 filename, linenum, arg, opcode);                                  filename, linenum, arg, opcode);

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77