[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.232 and 1.233

version 1.232, 2012/11/04 11:09:15 version 1.233, 2012/12/02 20:46:11
Line 236 
Line 236 
         if (options->compression == -1)          if (options->compression == -1)
                 options->compression = COMP_DELAYED;                  options->compression = COMP_DELAYED;
         if (options->allow_tcp_forwarding == -1)          if (options->allow_tcp_forwarding == -1)
                 options->allow_tcp_forwarding = 1;                  options->allow_tcp_forwarding = FORWARD_ALLOW;
         if (options->allow_agent_forwarding == -1)          if (options->allow_agent_forwarding == -1)
                 options->allow_agent_forwarding = 1;                  options->allow_agent_forwarding = 1;
         if (options->gateway_ports == -1)          if (options->gateway_ports == -1)
Line 747 
Line 747 
         { "no",                         PRIVSEP_OFF },          { "no",                         PRIVSEP_OFF },
         { NULL, -1 }          { NULL, -1 }
 };  };
   static const struct multistate multistate_tcpfwd[] = {
           { "yes",                        FORWARD_ALLOW },
           { "all",                        FORWARD_ALLOW },
           { "no",                         FORWARD_DENY },
           { "remote",                     FORWARD_REMOTE },
           { "local",                      FORWARD_LOCAL },
           { NULL, -1 }
   };
   
 int  int
 process_server_config_line(ServerOptions *options, char *line,  process_server_config_line(ServerOptions *options, char *line,
Line 1098 
Line 1106 
   
         case sAllowTcpForwarding:          case sAllowTcpForwarding:
                 intptr = &options->allow_tcp_forwarding;                  intptr = &options->allow_tcp_forwarding;
                 goto parse_flag;                  multistate_ptr = multistate_tcpfwd;
                   goto parse_multistate;
   
         case sAllowAgentForwarding:          case sAllowAgentForwarding:
                 intptr = &options->allow_agent_forwarding;                  intptr = &options->allow_agent_forwarding;
Line 1378 
Line 1387 
                 }                  }
                 if (strcmp(arg, "none") == 0) {                  if (strcmp(arg, "none") == 0) {
                         if (*activep && n == -1) {                          if (*activep && n == -1) {
                                 channel_clear_adm_permitted_opens();  
                                 options->num_permitted_opens = 1;                                  options->num_permitted_opens = 1;
                                 channel_disable_adm_local_opens();                                  channel_disable_adm_local_opens();
                         }                          }
Line 1735 
Line 1743 
                 return fmt_multistate_int(val, multistate_compression);                  return fmt_multistate_int(val, multistate_compression);
         case sUsePrivilegeSeparation:          case sUsePrivilegeSeparation:
                 return fmt_multistate_int(val, multistate_privsep);                  return fmt_multistate_int(val, multistate_privsep);
           case sAllowTcpForwarding:
                   return fmt_multistate_int(val, multistate_tcpfwd);
         case sProtocol:          case sProtocol:
                 switch (val) {                  switch (val) {
                 case SSH_PROTO_1:                  case SSH_PROTO_1:

Legend:
Removed from v.1.232  
changed lines
  Added in v.1.233