summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/readconf.c b/readconf.c
index 007056d4d..12b431d59 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: readconf.c,v 1.71 2001/04/07 08:55:17 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.72 2001/04/12 19:15:25 markus Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -110,7 +110,7 @@ typedef enum {
110 oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol, oMacs, 110 oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol, oMacs,
111 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, 111 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication,
112 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, 112 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
113 oDynamicForward, oPreferredAuthentications 113 oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication
114} OpCodes; 114} OpCodes;
115 115
116/* Textual representations of the tokens. */ 116/* Textual representations of the tokens. */
@@ -131,6 +131,8 @@ static struct {
131 { "rsaauthentication", oRSAAuthentication }, 131 { "rsaauthentication", oRSAAuthentication },
132 { "pubkeyauthentication", oPubkeyAuthentication }, 132 { "pubkeyauthentication", oPubkeyAuthentication },
133 { "dsaauthentication", oPubkeyAuthentication }, /* alias */ 133 { "dsaauthentication", oPubkeyAuthentication }, /* alias */
134 { "rhostsrsaauthentication", oRhostsRSAAuthentication },
135 { "hostbaedauthentication", oHostbasedAuthentication },
134 { "challengeresponseauthentication", oChallengeResponseAuthentication }, 136 { "challengeresponseauthentication", oChallengeResponseAuthentication },
135 { "skeyauthentication", oChallengeResponseAuthentication }, /* alias */ 137 { "skeyauthentication", oChallengeResponseAuthentication }, /* alias */
136 { "tisauthentication", oChallengeResponseAuthentication }, /* alias */ 138 { "tisauthentication", oChallengeResponseAuthentication }, /* alias */
@@ -158,7 +160,6 @@ static struct {
158 { "user", oUser }, 160 { "user", oUser },
159 { "host", oHost }, 161 { "host", oHost },
160 { "escapechar", oEscapeChar }, 162 { "escapechar", oEscapeChar },
161 { "rhostsrsaauthentication", oRhostsRSAAuthentication },
162 { "globalknownhostsfile", oGlobalKnownHostsFile }, 163 { "globalknownhostsfile", oGlobalKnownHostsFile },
163 { "userknownhostsfile", oUserKnownHostsFile }, 164 { "userknownhostsfile", oUserKnownHostsFile },
164 { "globalknownhostsfile2", oGlobalKnownHostsFile2 }, 165 { "globalknownhostsfile2", oGlobalKnownHostsFile2 },
@@ -324,6 +325,10 @@ parse_flag:
324 intptr = &options->rhosts_rsa_authentication; 325 intptr = &options->rhosts_rsa_authentication;
325 goto parse_flag; 326 goto parse_flag;
326 327
328 case oHostbasedAuthentication:
329 intptr = &options->hostbased_authentication;
330 goto parse_flag;
331
327 case oChallengeResponseAuthentication: 332 case oChallengeResponseAuthentication:
328 intptr = &options->challenge_reponse_authentication; 333 intptr = &options->challenge_reponse_authentication;
329 goto parse_flag; 334 goto parse_flag;
@@ -594,7 +599,7 @@ parse_int:
594 filename, linenum); 599 filename, linenum);
595 fwd_port = atoi(arg); 600 fwd_port = atoi(arg);
596 add_local_forward(options, fwd_port, "socks4", 0); 601 add_local_forward(options, fwd_port, "socks4", 0);
597 break; 602 break;
598 603
599 case oHost: 604 case oHost:
600 *activep = 0; 605 *activep = 0;
@@ -712,6 +717,7 @@ initialize_options(Options * options)
712 options->kbd_interactive_authentication = -1; 717 options->kbd_interactive_authentication = -1;
713 options->kbd_interactive_devices = NULL; 718 options->kbd_interactive_devices = NULL;
714 options->rhosts_rsa_authentication = -1; 719 options->rhosts_rsa_authentication = -1;
720 options->hostbased_authentication = -1;
715 options->fallback_to_rsh = -1; 721 options->fallback_to_rsh = -1;
716 options->use_rsh = -1; 722 options->use_rsh = -1;
717 options->batch_mode = -1; 723 options->batch_mode = -1;
@@ -789,6 +795,8 @@ fill_default_options(Options * options)
789 options->kbd_interactive_authentication = 1; 795 options->kbd_interactive_authentication = 1;
790 if (options->rhosts_rsa_authentication == -1) 796 if (options->rhosts_rsa_authentication == -1)
791 options->rhosts_rsa_authentication = 1; 797 options->rhosts_rsa_authentication = 1;
798 if (options->hostbased_authentication == -1)
799 options->hostbased_authentication = 0;
792 if (options->fallback_to_rsh == -1) 800 if (options->fallback_to_rsh == -1)
793 options->fallback_to_rsh = 0; 801 options->fallback_to_rsh = 0;
794 if (options->use_rsh == -1) 802 if (options->use_rsh == -1)