version 1.362, 2020/04/17 03:23:13 |
version 1.363, 2020/04/17 03:30:05 |
|
|
{ "no", 0 }, |
{ "no", 0 }, |
{ NULL, -1 } |
{ NULL, -1 } |
}; |
}; |
|
static const struct multistate multistate_ignore_rhosts[] = { |
|
{ "yes", IGNORE_RHOSTS_YES }, |
|
{ "no", IGNORE_RHOSTS_NO }, |
|
{ "shosts-only", IGNORE_RHOSTS_SHOSTS }, |
|
{ NULL, -1 } |
|
}; |
static const struct multistate multistate_addressfamily[] = { |
static const struct multistate multistate_addressfamily[] = { |
{ "inet", AF_INET }, |
{ "inet", AF_INET }, |
{ "inet6", AF_INET6 }, |
{ "inet6", AF_INET6 }, |
|
|
|
|
case sIgnoreRhosts: |
case sIgnoreRhosts: |
intptr = &options->ignore_rhosts; |
intptr = &options->ignore_rhosts; |
parse_flag: |
multistate_ptr = multistate_ignore_rhosts; |
multistate_ptr = multistate_flag; |
|
goto parse_multistate; |
goto parse_multistate; |
|
|
case sIgnoreUserKnownHosts: |
case sIgnoreUserKnownHosts: |
intptr = &options->ignore_user_known_hosts; |
intptr = &options->ignore_user_known_hosts; |
goto parse_flag; |
parse_flag: |
|
multistate_ptr = multistate_flag; |
|
goto parse_multistate; |
|
|
case sHostbasedAuthentication: |
case sHostbasedAuthentication: |
intptr = &options->hostbased_authentication; |
intptr = &options->hostbased_authentication; |
|
|
return fmt_multistate_int(val, multistate_tcpfwd); |
return fmt_multistate_int(val, multistate_tcpfwd); |
case sAllowStreamLocalForwarding: |
case sAllowStreamLocalForwarding: |
return fmt_multistate_int(val, multistate_tcpfwd); |
return fmt_multistate_int(val, multistate_tcpfwd); |
|
case sIgnoreRhosts: |
|
return fmt_multistate_int(val, multistate_ignore_rhosts); |
case sFingerprintHash: |
case sFingerprintHash: |
return ssh_digest_alg_name(val); |
return ssh_digest_alg_name(val); |
default: |
default: |