[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.2 and 1.3

version 1.2, 1999/09/28 04:45:36 version 1.3, 1999/09/29 00:10:16
Line 88 
Line 88 
   
 typedef enum  typedef enum
 {  {
   oForwardAgent, oForwardX11, oRhostsAuthentication,    oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication,
   oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh,    oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh,
 #ifdef KRB4  #ifdef KRB4
   oKerberosAuthentication,    oKerberosAuthentication,
Line 116 
Line 116 
 {  {
   { "forwardagent", oForwardAgent },    { "forwardagent", oForwardAgent },
   { "forwardx11", oForwardX11 },    { "forwardx11", oForwardX11 },
     { "gatewayports", oGatewayPorts },
   { "rhostsauthentication", oRhostsAuthentication },    { "rhostsauthentication", oRhostsAuthentication },
   { "passwordauthentication", oPasswordAuthentication },    { "passwordauthentication", oPasswordAuthentication },
   { "rsaauthentication", oRSAAuthentication },    { "rsaauthentication", oRSAAuthentication },
Line 254 
Line 255 
     case oForwardX11:      case oForwardX11:
       intptr = &options->forward_x11;        intptr = &options->forward_x11;
       goto parse_flag;        goto parse_flag;
   
       case oGatewayPorts:
         intptr = &options->gateway_ports;
         goto parse_flag;
   
     case oRhostsAuthentication:      case oRhostsAuthentication:
       intptr = &options->rhosts_authentication;        intptr = &options->rhosts_authentication;
Line 558 
Line 563 
   memset(options, 'X', sizeof(*options));    memset(options, 'X', sizeof(*options));
   options->forward_agent = -1;    options->forward_agent = -1;
   options->forward_x11 = -1;    options->forward_x11 = -1;
     options->gateway_ports = -1;
   options->rhosts_authentication = -1;    options->rhosts_authentication = -1;
   options->rsa_authentication = -1;    options->rsa_authentication = -1;
 #ifdef KRB4  #ifdef KRB4
Line 605 
Line 611 
     options->forward_agent = 1;      options->forward_agent = 1;
   if (options->forward_x11 == -1)    if (options->forward_x11 == -1)
     options->forward_x11 = 1;      options->forward_x11 = 1;
     if (options->gateway_ports == -1)
       options->gateway_ports = 0;
   if (options->rhosts_authentication == -1)    if (options->rhosts_authentication == -1)
     options->rhosts_authentication = 1;      options->rhosts_authentication = 1;
   if (options->rsa_authentication == -1)    if (options->rsa_authentication == -1)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3