version 1.9, 1999/10/03 22:01:39 |
version 1.10, 1999/10/06 20:07:42 |
|
|
oUser, oHost, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, |
oUser, oHost, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, |
oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, |
oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, |
oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, |
oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, |
oCompressionLevel, oKeepAlives, oTISAuthentication |
oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication |
} OpCodes; |
} OpCodes; |
|
|
/* Textual representations of the tokens. */ |
/* Textual representations of the tokens. */ |
|
|
{ "compression", oCompression }, |
{ "compression", oCompression }, |
{ "compressionlevel", oCompressionLevel }, |
{ "compressionlevel", oCompressionLevel }, |
{ "keepalive", oKeepAlives }, |
{ "keepalive", oKeepAlives }, |
|
{ "numberofpasswordprompts", oNumberOfPasswordPrompts }, |
{ "tisauthentication", oTISAuthentication }, |
{ "tisauthentication", oTISAuthentication }, |
{ NULL, 0 } |
{ NULL, 0 } |
}; |
}; |
|
|
intptr = &options->keepalives; |
intptr = &options->keepalives; |
goto parse_flag; |
goto parse_flag; |
|
|
|
case oNumberOfPasswordPrompts: |
|
intptr = &options->number_of_password_prompts; |
|
goto parse_int; |
|
|
case oTISAuthentication: |
case oTISAuthentication: |
cp = strtok(NULL, WHITESPACE); |
cp = strtok(NULL, WHITESPACE); |
if (cp != 0 && (strcmp(cp, "yes") == 0 || strcmp(cp, "true") == 0)) |
if (cp != 0 && (strcmp(cp, "yes") == 0 || strcmp(cp, "true") == 0)) |
|
|
options->compression_level = -1; |
options->compression_level = -1; |
options->port = -1; |
options->port = -1; |
options->connection_attempts = -1; |
options->connection_attempts = -1; |
|
options->number_of_password_prompts = -1; |
options->cipher = -1; |
options->cipher = -1; |
options->num_identity_files = 0; |
options->num_identity_files = 0; |
options->hostname = NULL; |
options->hostname = NULL; |
|
|
options->port = 0; /* Filled in ssh_connect. */ |
options->port = 0; /* Filled in ssh_connect. */ |
if (options->connection_attempts == -1) |
if (options->connection_attempts == -1) |
options->connection_attempts = 4; |
options->connection_attempts = 4; |
|
if (options->number_of_password_prompts == -1) |
|
options->number_of_password_prompts = 3; |
if (options->cipher == -1) |
if (options->cipher == -1) |
options->cipher = SSH_CIPHER_NOT_SET; /* Selected in ssh_login(). */ |
options->cipher = SSH_CIPHER_NOT_SET; /* Selected in ssh_login(). */ |
if (options->num_identity_files == 0) |
if (options->num_identity_files == 0) |