[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.277 and 1.278

version 1.277, 2017/05/30 18:58:37 version 1.278, 2017/09/03 23:33:13
Line 736 
Line 736 
         { "ask",                        2 },          { "ask",                        2 },
         { NULL, -1 }          { NULL, -1 }
 };  };
   static const struct multistate multistate_strict_hostkey[] = {
           { "true",                       SSH_STRICT_HOSTKEY_YES },
           { "false",                      SSH_STRICT_HOSTKEY_OFF },
           { "yes",                        SSH_STRICT_HOSTKEY_YES },
           { "no",                         SSH_STRICT_HOSTKEY_OFF },
           { "ask",                        SSH_STRICT_HOSTKEY_ASK },
           { "off",                        SSH_STRICT_HOSTKEY_OFF },
           { "accept-new",                 SSH_STRICT_HOSTKEY_NEW },
           { NULL, -1 }
   };
 static const struct multistate multistate_yesnoaskconfirm[] = {  static const struct multistate multistate_yesnoaskconfirm[] = {
         { "true",                       1 },          { "true",                       1 },
         { "false",                      0 },          { "false",                      0 },
Line 969 
Line 979 
   
         case oStrictHostKeyChecking:          case oStrictHostKeyChecking:
                 intptr = &options->strict_host_key_checking;                  intptr = &options->strict_host_key_checking;
                 multistate_ptr = multistate_yesnoask;                  multistate_ptr = multistate_strict_hostkey;
                 goto parse_multistate;                  goto parse_multistate;
   
         case oCompression:          case oCompression:
Line 1912 
Line 1922 
         if (options->check_host_ip == -1)          if (options->check_host_ip == -1)
                 options->check_host_ip = 1;                  options->check_host_ip = 1;
         if (options->strict_host_key_checking == -1)          if (options->strict_host_key_checking == -1)
                 options->strict_host_key_checking = 2;  /* 2 is default */                  options->strict_host_key_checking = SSH_STRICT_HOSTKEY_ASK;
         if (options->compression == -1)          if (options->compression == -1)
                 options->compression = 0;                  options->compression = 0;
         if (options->tcp_keep_alive == -1)          if (options->tcp_keep_alive == -1)
Line 2312 
Line 2322 
         case oAddressFamily:          case oAddressFamily:
                 return fmt_multistate_int(val, multistate_addressfamily);                  return fmt_multistate_int(val, multistate_addressfamily);
         case oVerifyHostKeyDNS:          case oVerifyHostKeyDNS:
         case oStrictHostKeyChecking:  
         case oUpdateHostkeys:          case oUpdateHostkeys:
                 return fmt_multistate_int(val, multistate_yesnoask);                  return fmt_multistate_int(val, multistate_yesnoask);
           case oStrictHostKeyChecking:
                   return fmt_multistate_int(val, multistate_strict_hostkey);
         case oControlMaster:          case oControlMaster:
                 return fmt_multistate_int(val, multistate_controlmaster);                  return fmt_multistate_int(val, multistate_controlmaster);
         case oTunnel:          case oTunnel:

Legend:
Removed from v.1.277  
changed lines
  Added in v.1.278