|
Lines 626-632
static struct {
Link Here
|
| 626 |
#else |
626 |
#else |
| 627 |
{ "printlastlog", sPrintLastLog, SSHCFG_GLOBAL }, |
627 |
{ "printlastlog", sPrintLastLog, SSHCFG_GLOBAL }, |
| 628 |
#endif |
628 |
#endif |
| 629 |
{ "ignorerhosts", sIgnoreRhosts, SSHCFG_GLOBAL }, |
629 |
{ "ignorerhosts", sIgnoreRhosts, SSHCFG_ALL }, |
| 630 |
{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, |
630 |
{ "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, |
| 631 |
{ "x11forwarding", sX11Forwarding, SSHCFG_ALL }, |
631 |
{ "x11forwarding", sX11Forwarding, SSHCFG_ALL }, |
| 632 |
{ "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL }, |
632 |
{ "x11displayoffset", sX11DisplayOffset, SSHCFG_ALL }, |
|
Lines 1213-1218
static const struct multistate multistate_flag[] = {
Link Here
|
| 1213 |
{ "no", 0 }, |
1213 |
{ "no", 0 }, |
| 1214 |
{ NULL, -1 } |
1214 |
{ NULL, -1 } |
| 1215 |
}; |
1215 |
}; |
|
|
1216 |
static const struct multistate multistate_ignore_rhosts[] = { |
| 1217 |
{ "yes", IGNORE_RHOSTS_YES }, |
| 1218 |
{ "no", IGNORE_RHOSTS_NO }, |
| 1219 |
{ "shosts-only", IGNORE_RHOSTS_SHOSTS }, |
| 1220 |
{ NULL, -1 } |
| 1221 |
}; |
| 1216 |
static const struct multistate multistate_addressfamily[] = { |
1222 |
static const struct multistate multistate_addressfamily[] = { |
| 1217 |
{ "inet", AF_INET }, |
1223 |
{ "inet", AF_INET }, |
| 1218 |
{ "inet6", AF_INET6 }, |
1224 |
{ "inet6", AF_INET6 }, |
|
Lines 1462-1474
process_server_config_line_depth(ServerOptions *options, char *line,
Link Here
|
| 1462 |
|
1468 |
|
| 1463 |
case sIgnoreRhosts: |
1469 |
case sIgnoreRhosts: |
| 1464 |
intptr = &options->ignore_rhosts; |
1470 |
intptr = &options->ignore_rhosts; |
| 1465 |
parse_flag: |
1471 |
multistate_ptr = multistate_ignore_rhosts; |
| 1466 |
multistate_ptr = multistate_flag; |
|
|
| 1467 |
goto parse_multistate; |
1472 |
goto parse_multistate; |
| 1468 |
|
1473 |
|
| 1469 |
case sIgnoreUserKnownHosts: |
1474 |
case sIgnoreUserKnownHosts: |
| 1470 |
intptr = &options->ignore_user_known_hosts; |
1475 |
intptr = &options->ignore_user_known_hosts; |
| 1471 |
goto parse_flag; |
1476 |
parse_flag: |
|
|
1477 |
multistate_ptr = multistate_flag; |
| 1478 |
goto parse_multistate; |
| 1472 |
|
1479 |
|
| 1473 |
case sHostbasedAuthentication: |
1480 |
case sHostbasedAuthentication: |
| 1474 |
intptr = &options->hostbased_authentication; |
1481 |
intptr = &options->hostbased_authentication; |
|
Lines 2473-2478
copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
Link Here
|
| 2473 |
M_CP_INTOPT(kbd_interactive_authentication); |
2480 |
M_CP_INTOPT(kbd_interactive_authentication); |
| 2474 |
M_CP_INTOPT(permit_root_login); |
2481 |
M_CP_INTOPT(permit_root_login); |
| 2475 |
M_CP_INTOPT(permit_empty_passwd); |
2482 |
M_CP_INTOPT(permit_empty_passwd); |
|
|
2483 |
M_CP_INTOPT(ignore_rhosts); |
| 2476 |
|
2484 |
|
| 2477 |
M_CP_INTOPT(allow_tcp_forwarding); |
2485 |
M_CP_INTOPT(allow_tcp_forwarding); |
| 2478 |
M_CP_INTOPT(allow_streamlocal_forwarding); |
2486 |
M_CP_INTOPT(allow_streamlocal_forwarding); |
|
Lines 2627-2632
fmt_intarg(ServerOpCodes code, int val)
Link Here
|
| 2627 |
return fmt_multistate_int(val, multistate_tcpfwd); |
2635 |
return fmt_multistate_int(val, multistate_tcpfwd); |
| 2628 |
case sAllowStreamLocalForwarding: |
2636 |
case sAllowStreamLocalForwarding: |
| 2629 |
return fmt_multistate_int(val, multistate_tcpfwd); |
2637 |
return fmt_multistate_int(val, multistate_tcpfwd); |
|
|
2638 |
case sIgnoreRhosts: |
| 2639 |
return fmt_multistate_int(val, multistate_ignore_rhosts); |
| 2630 |
case sFingerprintHash: |
2640 |
case sFingerprintHash: |
| 2631 |
return ssh_digest_alg_name(val); |
2641 |
return ssh_digest_alg_name(val); |
| 2632 |
default: |
2642 |
default: |