version 1.277, 2017/05/30 18:58:37 |
version 1.278, 2017/09/03 23:33:13 |
|
|
{ "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 }, |
|
|
|
|
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: |
|
|
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) |
|
|
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: |