version 1.378, 2023/07/17 04:04:36 |
version 1.379, 2023/07/17 04:08:31 |
|
|
|
|
typedef enum { |
typedef enum { |
oBadOption, |
oBadOption, |
oHost, oMatch, oInclude, |
oHost, oMatch, oInclude, oTag, |
oForwardAgent, oForwardX11, oForwardX11Trusted, oForwardX11Timeout, |
oForwardAgent, oForwardX11, oForwardX11Trusted, oForwardX11Timeout, |
oGatewayPorts, oExitOnForwardFailure, |
oGatewayPorts, oExitOnForwardFailure, |
oPasswordAuthentication, |
oPasswordAuthentication, |
|
|
{ "user", oUser }, |
{ "user", oUser }, |
{ "host", oHost }, |
{ "host", oHost }, |
{ "match", oMatch }, |
{ "match", oMatch }, |
|
{ "tag", oTag }, |
{ "escapechar", oEscapeChar }, |
{ "escapechar", oEscapeChar }, |
{ "globalknownhostsfile", oGlobalKnownHostsFile }, |
{ "globalknownhostsfile", oGlobalKnownHostsFile }, |
{ "userknownhostsfile", oUserKnownHostsFile }, |
{ "userknownhostsfile", oUserKnownHostsFile }, |
|
|
goto out; |
goto out; |
} |
} |
r = check_match_ifaddrs(arg) == 1; |
r = check_match_ifaddrs(arg) == 1; |
|
} else if (strcasecmp(attrib, "tagged") == 0) { |
|
criteria = xstrdup(options->tag == NULL ? "" : |
|
options->tag); |
|
r = match_pattern_list(criteria, arg, 0) == 1; |
if (r == (negate ? 1 : 0)) |
if (r == (negate ? 1 : 0)) |
this_result = result = 0; |
this_result = result = 0; |
} else if (strcasecmp(attrib, "exec") == 0) { |
} else if (strcasecmp(attrib, "exec") == 0) { |
|
|
charptr = &options->hostname; |
charptr = &options->hostname; |
goto parse_string; |
goto parse_string; |
|
|
|
case oTag: |
|
charptr = &options->tag; |
|
goto parse_string; |
|
|
case oHostKeyAlias: |
case oHostKeyAlias: |
charptr = &options->host_key_alias; |
charptr = &options->host_key_alias; |
goto parse_string; |
goto parse_string; |
|
|
options->known_hosts_command = NULL; |
options->known_hosts_command = NULL; |
options->required_rsa_size = -1; |
options->required_rsa_size = -1; |
options->enable_escape_commandline = -1; |
options->enable_escape_commandline = -1; |
|
options->tag = NULL; |
} |
} |
|
|
/* |
/* |
|
|
dump_cfg_string(oRevokedHostKeys, o->revoked_host_keys); |
dump_cfg_string(oRevokedHostKeys, o->revoked_host_keys); |
dump_cfg_string(oXAuthLocation, o->xauth_location); |
dump_cfg_string(oXAuthLocation, o->xauth_location); |
dump_cfg_string(oKnownHostsCommand, o->known_hosts_command); |
dump_cfg_string(oKnownHostsCommand, o->known_hosts_command); |
|
dump_cfg_string(oTag, o->tag); |
|
|
/* Forwards */ |
/* Forwards */ |
dump_cfg_forwards(oDynamicForward, o->num_local_forwards, o->local_forwards); |
dump_cfg_forwards(oDynamicForward, o->num_local_forwards, o->local_forwards); |