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

Diff for /src/usr.bin/ssh/readconf.c between version 1.103 and 1.104

version 1.103, 2003/04/01 10:10:23 version 1.104, 2003/04/01 10:22:21
Line 114 
Line 114 
         oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,          oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
         oHostKeyAlgorithms, oBindAddress, oSmartcardDevice,          oHostKeyAlgorithms, oBindAddress, oSmartcardDevice,
         oClearAllForwardings, oNoHostAuthenticationForLocalhost,          oClearAllForwardings, oNoHostAuthenticationForLocalhost,
         oEnableSSHKeysign, oRekeyLimit,          oEnableSSHKeysign,
         oDeprecated          oDeprecated
 } OpCodes;  } OpCodes;
   
Line 188 
Line 188 
         { "clearallforwardings", oClearAllForwardings },          { "clearallforwardings", oClearAllForwardings },
         { "enablesshkeysign", oEnableSSHKeysign },          { "enablesshkeysign", oEnableSSHKeysign },
         { "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },          { "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost },
         { "rekeylimit", oRekeyLimit },  
         { NULL, oBadOption }          { NULL, oBadOption }
 };  };
   
Line 422 
Line 421 
                 intptr = &options->compression_level;                  intptr = &options->compression_level;
                 goto parse_int;                  goto parse_int;
   
         case oRekeyLimit:  
                 intptr = &options->rekey_limit;  
                 arg = strdelim(&s);  
                 if (!arg || *arg == '\0')  
                         fatal("%.200s line %d: Missing argument.", filename, linenum);  
                 if (arg[0] < '0' || arg[0] > '9')  
                         fatal("%.200s line %d: Bad number.", filename, linenum);  
                 value = strtol(arg, &endofnumber, 10);  
                 if (arg == endofnumber)  
                         fatal("%.200s line %d: Bad number.", filename, linenum);  
                 switch (toupper(*endofnumber)) {  
                 case 'K':  
                         value *= 1<<10;  
                         break;  
                 case 'M':  
                         value *= 1<<20;  
                         break;  
                 case 'G':  
                         value *= 1<<30;  
                         break;  
                 }  
                 if (*activep && *intptr == -1)  
                         *intptr = value;  
                 break;  
   
         case oIdentityFile:          case oIdentityFile:
                 arg = strdelim(&s);                  arg = strdelim(&s);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
Line 819 
Line 793 
         options->smartcard_device = NULL;          options->smartcard_device = NULL;
         options->enable_ssh_keysign = - 1;          options->enable_ssh_keysign = - 1;
         options->no_host_authentication_for_localhost = - 1;          options->no_host_authentication_for_localhost = - 1;
         options->rekey_limit = - 1;  
 }  }
   
 /*  /*
Line 936 
Line 909 
                 options->no_host_authentication_for_localhost = 0;                  options->no_host_authentication_for_localhost = 0;
         if (options->enable_ssh_keysign == -1)          if (options->enable_ssh_keysign == -1)
                 options->enable_ssh_keysign = 0;                  options->enable_ssh_keysign = 0;
         if (options->rekey_limit == -1)  
                 options->rekey_limit = 0;  
         /* options->proxy_command should not be set by default */          /* options->proxy_command should not be set by default */
         /* options->user will be set in the main program if appropriate */          /* options->user will be set in the main program if appropriate */
         /* options->hostname will be set in the main program if appropriate */          /* options->hostname will be set in the main program if appropriate */

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104