diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 83069d3ad..63035b37f 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: readconf.c,v 1.90 2001/09/19 19:24:18 stevesk Exp $"); | 15 | RCSID("$OpenBSD: readconf.c,v 1.91 2001/10/01 21:51:16 markus Exp $"); |
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "xmalloc.h" | 18 | #include "xmalloc.h" |
@@ -115,7 +115,7 @@ typedef enum { | |||
115 | oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, | 115 | oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, |
116 | oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, | 116 | oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, |
117 | oHostKeyAlgorithms, oBindAddress, oSmartcardDevice, | 117 | oHostKeyAlgorithms, oBindAddress, oSmartcardDevice, |
118 | oClearAllForwardings | 118 | oClearAllForwardings, oNoHostAuthenticationForLocalhost |
119 | } OpCodes; | 119 | } OpCodes; |
120 | 120 | ||
121 | /* Textual representations of the tokens. */ | 121 | /* Textual representations of the tokens. */ |
@@ -186,6 +186,7 @@ static struct { | |||
186 | { "bindaddress", oBindAddress }, | 186 | { "bindaddress", oBindAddress }, |
187 | { "smartcarddevice", oSmartcardDevice }, | 187 | { "smartcarddevice", oSmartcardDevice }, |
188 | { "clearallforwardings", oClearAllForwardings }, | 188 | { "clearallforwardings", oClearAllForwardings }, |
189 | { "nohostauthenticationforlocalhost", oNoHostAuthenticationForLocalhost }, | ||
189 | { NULL, 0 } | 190 | { NULL, 0 } |
190 | }; | 191 | }; |
191 | 192 | ||
@@ -415,6 +416,10 @@ parse_flag: | |||
415 | intptr = &options->keepalives; | 416 | intptr = &options->keepalives; |
416 | goto parse_flag; | 417 | goto parse_flag; |
417 | 418 | ||
419 | case oNoHostAuthenticationForLocalhost: | ||
420 | intptr = &options->no_host_authentication_for_localhost; | ||
421 | goto parse_flag; | ||
422 | |||
418 | case oNumberOfPasswordPrompts: | 423 | case oNumberOfPasswordPrompts: |
419 | intptr = &options->number_of_password_prompts; | 424 | intptr = &options->number_of_password_prompts; |
420 | goto parse_int; | 425 | goto parse_int; |
@@ -793,6 +798,7 @@ initialize_options(Options * options) | |||
793 | options->preferred_authentications = NULL; | 798 | options->preferred_authentications = NULL; |
794 | options->bind_address = NULL; | 799 | options->bind_address = NULL; |
795 | options->smartcard_device = NULL; | 800 | options->smartcard_device = NULL; |
801 | options->no_host_authentication_for_localhost = - 1; | ||
796 | } | 802 | } |
797 | 803 | ||
798 | /* | 804 | /* |
@@ -911,6 +917,8 @@ fill_default_options(Options * options) | |||
911 | options->log_level = SYSLOG_LEVEL_INFO; | 917 | options->log_level = SYSLOG_LEVEL_INFO; |
912 | if (options->clear_forwardings == 1) | 918 | if (options->clear_forwardings == 1) |
913 | clear_forwardings(options); | 919 | clear_forwardings(options); |
920 | if (options->no_host_authentication_for_localhost == - 1) | ||
921 | options->no_host_authentication_for_localhost = 0; | ||
914 | /* options->proxy_command should not be set by default */ | 922 | /* options->proxy_command should not be set by default */ |
915 | /* options->user will be set in the main program if appropriate */ | 923 | /* options->user will be set in the main program if appropriate */ |
916 | /* options->hostname will be set in the main program if appropriate */ | 924 | /* options->hostname will be set in the main program if appropriate */ |