diff options
author | jp161948 <none@none> | 2007-10-12 03:45:44 -0700 |
---|---|---|
committer | jp161948 <none@none> | 2007-10-12 03:45:44 -0700 |
commit | 442d23f49355a5d0694c758975be57af39f91a61 (patch) | |
tree | e23b7adde8dcbf0470e4de6883cfbef0bdcfd165 /usr/src/cmd/ssh/libssh/common/readconf.c | |
parent | d54f1b9de6449e2955636f55ecfb3d50e13a0d98 (diff) | |
download | illumos-gate-442d23f49355a5d0694c758975be57af39f91a61.tar.gz |
PSARC/2007/034 ssh/sshd resync with OpenSSH
6324633 OpenSSH HashKnownHosts functionality desired for SunSSH
Diffstat (limited to 'usr/src/cmd/ssh/libssh/common/readconf.c')
-rw-r--r-- | usr/src/cmd/ssh/libssh/common/readconf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/cmd/ssh/libssh/common/readconf.c b/usr/src/cmd/ssh/libssh/common/readconf.c index 09afd7cca9..dda93df0cc 100644 --- a/usr/src/cmd/ssh/libssh/common/readconf.c +++ b/usr/src/cmd/ssh/libssh/common/readconf.c @@ -127,7 +127,7 @@ typedef enum { oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, oHostKeyAlgorithms, oBindAddress, oSmartcardDevice, oClearAllForwardings, oNoHostAuthenticationForLocalhost, - oFallBackToRsh, oUseRsh, oConnectTimeout, + oFallBackToRsh, oUseRsh, oConnectTimeout, oHashKnownHosts, oServerAliveInterval, oServerAliveCountMax, oDisableBanner, oDeprecated } OpCodes; @@ -219,6 +219,7 @@ static struct { { "serveraliveinterval", oServerAliveInterval }, { "serveralivecountmax", oServerAliveCountMax }, { "disablebanner", oDisableBanner }, + { "hashknownhosts", oHashKnownHosts }, { NULL, oBadOption } }; @@ -757,6 +758,10 @@ parse_int: intptr = &options->server_alive_count_max; goto parse_int; + case oHashKnownHosts: + intptr = &options->hash_known_hosts; + goto parse_flag; + case oDisableBanner: arg = strdelim(&s); if (get_yes_no_flag(&options->disable_banner, arg, filename, @@ -909,6 +914,7 @@ initialize_options(Options * options) options->use_rsh = -1; options->server_alive_interval = -1; options->server_alive_count_max = -1; + options->hash_known_hosts = -1; options->disable_banner = -1; } @@ -1050,6 +1056,8 @@ fill_default_options(Options * options) options->server_alive_interval = 0; if (options->server_alive_count_max == -1) options->server_alive_count_max = 3; + if (options->hash_known_hosts == -1) + options->hash_known_hosts = 0; if (options->disable_banner == -1) options->disable_banner = 0; /* options->proxy_command should not be set by default */ |