version 1.308, 2017/05/17 01:24:17 |
version 1.309, 2017/06/24 06:34:38 |
|
|
options->version_addendum = NULL; |
options->version_addendum = NULL; |
options->fingerprint_hash = -1; |
options->fingerprint_hash = -1; |
options->disable_forwarding = -1; |
options->disable_forwarding = -1; |
|
options->expose_userauth_info = -1; |
} |
} |
|
|
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
/* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
|
|
options->fingerprint_hash = SSH_FP_HASH_DEFAULT; |
options->fingerprint_hash = SSH_FP_HASH_DEFAULT; |
if (options->disable_forwarding == -1) |
if (options->disable_forwarding == -1) |
options->disable_forwarding = 0; |
options->disable_forwarding = 0; |
|
if (options->expose_userauth_info == -1) |
|
options->expose_userauth_info = 0; |
|
|
assemble_algorithms(options); |
assemble_algorithms(options); |
|
|
|
|
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
sStreamLocalBindMask, sStreamLocalBindUnlink, |
sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, |
sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, |
|
sExposeAuthInfo, |
sDeprecated, sIgnore, sUnsupported |
sDeprecated, sIgnore, sUnsupported |
} ServerOpCodes; |
} ServerOpCodes; |
|
|
|
|
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
{ "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
{ "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
{ "disableforwarding", sDisableForwarding, SSHCFG_ALL }, |
{ "disableforwarding", sDisableForwarding, SSHCFG_ALL }, |
|
{ "exposeauthinfo", sExposeAuthInfo, SSHCFG_ALL }, |
{ NULL, sBadOption, 0 } |
{ NULL, sBadOption, 0 } |
}; |
}; |
|
|
|
|
options->fingerprint_hash = value; |
options->fingerprint_hash = value; |
break; |
break; |
|
|
|
case sExposeAuthInfo: |
|
intptr = &options->expose_userauth_info; |
|
goto parse_flag; |
|
|
case sDeprecated: |
case sDeprecated: |
case sIgnore: |
case sIgnore: |
case sUnsupported: |
case sUnsupported: |
|
|
M_CP_INTOPT(allow_streamlocal_forwarding); |
M_CP_INTOPT(allow_streamlocal_forwarding); |
M_CP_INTOPT(allow_agent_forwarding); |
M_CP_INTOPT(allow_agent_forwarding); |
M_CP_INTOPT(disable_forwarding); |
M_CP_INTOPT(disable_forwarding); |
|
M_CP_INTOPT(expose_userauth_info); |
M_CP_INTOPT(permit_tun); |
M_CP_INTOPT(permit_tun); |
M_CP_INTOPT(fwd_opts.gateway_ports); |
M_CP_INTOPT(fwd_opts.gateway_ports); |
M_CP_INTOPT(fwd_opts.streamlocal_bind_unlink); |
M_CP_INTOPT(fwd_opts.streamlocal_bind_unlink); |
|
|
dump_cfg_fmtint(sAllowStreamLocalForwarding, o->allow_streamlocal_forwarding); |
dump_cfg_fmtint(sAllowStreamLocalForwarding, o->allow_streamlocal_forwarding); |
dump_cfg_fmtint(sStreamLocalBindUnlink, o->fwd_opts.streamlocal_bind_unlink); |
dump_cfg_fmtint(sStreamLocalBindUnlink, o->fwd_opts.streamlocal_bind_unlink); |
dump_cfg_fmtint(sFingerprintHash, o->fingerprint_hash); |
dump_cfg_fmtint(sFingerprintHash, o->fingerprint_hash); |
|
dump_cfg_fmtint(sExposeAuthInfo, o->expose_userauth_info); |
|
|
/* string arguments */ |
/* string arguments */ |
dump_cfg_string(sPidFile, o->pid_file); |
dump_cfg_string(sPidFile, o->pid_file); |