version 1.245, 2015/10/27 08:54:52 |
version 1.246, 2015/11/15 22:26:49 |
|
|
oPasswordAuthentication, oRSAAuthentication, |
oPasswordAuthentication, oRSAAuthentication, |
oChallengeResponseAuthentication, oXAuthLocation, |
oChallengeResponseAuthentication, oXAuthLocation, |
oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, |
oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, |
oCertificateFile, |
oCertificateFile, oAddKeysToAgent, |
oUser, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, |
oUser, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, |
oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, |
oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, |
oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, |
oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, |
|
|
{ "identityfile2", oIdentityFile }, /* obsolete */ |
{ "identityfile2", oIdentityFile }, /* obsolete */ |
{ "identitiesonly", oIdentitiesOnly }, |
{ "identitiesonly", oIdentitiesOnly }, |
{ "certificatefile", oCertificateFile }, |
{ "certificatefile", oCertificateFile }, |
|
{ "addkeystoagent", oAddKeysToAgent }, |
{ "hostname", oHostName }, |
{ "hostname", oHostName }, |
{ "hostkeyalias", oHostKeyAlias }, |
{ "hostkeyalias", oHostKeyAlias }, |
{ "proxycommand", oProxyCommand }, |
{ "proxycommand", oProxyCommand }, |
|
|
{ "ask", 2 }, |
{ "ask", 2 }, |
{ NULL, -1 } |
{ NULL, -1 } |
}; |
}; |
|
static const struct multistate multistate_yesnoaskconfirm[] = { |
|
{ "true", 1 }, |
|
{ "false", 0 }, |
|
{ "yes", 1 }, |
|
{ "no", 0 }, |
|
{ "ask", 2 }, |
|
{ "confirm", 3 }, |
|
{ 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 }, |
|
|
charptr = &options->pubkey_key_types; |
charptr = &options->pubkey_key_types; |
goto parse_keytypes; |
goto parse_keytypes; |
|
|
|
case oAddKeysToAgent: |
|
intptr = &options->add_keys_to_agent; |
|
multistate_ptr = multistate_yesnoaskconfirm; |
|
goto parse_multistate; |
|
|
case oDeprecated: |
case oDeprecated: |
debug("%s line %d: Deprecated option \"%s\"", |
debug("%s line %d: Deprecated option \"%s\"", |
filename, linenum, keyword); |
filename, linenum, keyword); |
|
|
options->local_command = NULL; |
options->local_command = NULL; |
options->permit_local_command = -1; |
options->permit_local_command = -1; |
options->use_roaming = -1; |
options->use_roaming = -1; |
|
options->add_keys_to_agent = -1; |
options->visual_host_key = -1; |
options->visual_host_key = -1; |
options->ip_qos_interactive = -1; |
options->ip_qos_interactive = -1; |
options->ip_qos_bulk = -1; |
options->ip_qos_bulk = -1; |
|
|
/* options->hostkeyalgorithms, default set in myproposals.h */ |
/* options->hostkeyalgorithms, default set in myproposals.h */ |
if (options->protocol == SSH_PROTO_UNKNOWN) |
if (options->protocol == SSH_PROTO_UNKNOWN) |
options->protocol = SSH_PROTO_2; |
options->protocol = SSH_PROTO_2; |
|
if (options->add_keys_to_agent == -1) |
|
options->add_keys_to_agent = 0; |
if (options->num_identity_files == 0) { |
if (options->num_identity_files == 0) { |
if (options->protocol & SSH_PROTO_1) { |
if (options->protocol & SSH_PROTO_1) { |
add_identity_file(options, "~/", |
add_identity_file(options, "~/", |