summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/readconf.c b/readconf.c
index 4f4a16de8..c6fdd5308 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,10 +12,9 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: readconf.c,v 1.47 2000/09/07 21:13:37 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.49 2000/10/11 20:27:23 markus Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "cipher.h"
19#include "readconf.h" 18#include "readconf.h"
20#include "match.h" 19#include "match.h"
21#include "xmalloc.h" 20#include "xmalloc.h"
@@ -103,7 +102,8 @@ typedef enum {
103 oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, 102 oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression,
104 oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication, 103 oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication,
105 oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol, oIdentityFile2, 104 oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol, oIdentityFile2,
106 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oDSAAuthentication 105 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oDSAAuthentication,
106 oKbdInteractiveAuthentication, oKbdInteractiveDevices
107} OpCodes; 107} OpCodes;
108 108
109/* Textual representations of the tokens. */ 109/* Textual representations of the tokens. */
@@ -119,6 +119,8 @@ static struct {
119 { "useprivilegedport", oUsePrivilegedPort }, 119 { "useprivilegedport", oUsePrivilegedPort },
120 { "rhostsauthentication", oRhostsAuthentication }, 120 { "rhostsauthentication", oRhostsAuthentication },
121 { "passwordauthentication", oPasswordAuthentication }, 121 { "passwordauthentication", oPasswordAuthentication },
122 { "kbdinteractiveauthentication", oKbdInteractiveAuthentication },
123 { "kbdinteractivedevices", oKbdInteractiveDevices },
122 { "rsaauthentication", oRSAAuthentication }, 124 { "rsaauthentication", oRSAAuthentication },
123 { "dsaauthentication", oDSAAuthentication }, 125 { "dsaauthentication", oDSAAuthentication },
124 { "skeyauthentication", oSkeyAuthentication }, 126 { "skeyauthentication", oSkeyAuthentication },
@@ -290,6 +292,14 @@ parse_flag:
290 intptr = &options->password_authentication; 292 intptr = &options->password_authentication;
291 goto parse_flag; 293 goto parse_flag;
292 294
295 case oKbdInteractiveAuthentication:
296 intptr = &options->kbd_interactive_authentication;
297 goto parse_flag;
298
299 case oKbdInteractiveDevices:
300 charptr = &options->kbd_interactive_devices;
301 goto parse_string;
302
293 case oDSAAuthentication: 303 case oDSAAuthentication:
294 intptr = &options->dsa_authentication; 304 intptr = &options->dsa_authentication;
295 goto parse_flag; 305 goto parse_flag;
@@ -664,6 +674,8 @@ initialize_options(Options * options)
664 options->afs_token_passing = -1; 674 options->afs_token_passing = -1;
665#endif 675#endif
666 options->password_authentication = -1; 676 options->password_authentication = -1;
677 options->kbd_interactive_authentication = -1;
678 options->kbd_interactive_devices = NULL;
667 options->rhosts_rsa_authentication = -1; 679 options->rhosts_rsa_authentication = -1;
668 options->fallback_to_rsh = -1; 680 options->fallback_to_rsh = -1;
669 options->use_rsh = -1; 681 options->use_rsh = -1;
@@ -734,6 +746,8 @@ fill_default_options(Options * options)
734#endif /* AFS */ 746#endif /* AFS */
735 if (options->password_authentication == -1) 747 if (options->password_authentication == -1)
736 options->password_authentication = 1; 748 options->password_authentication = 1;
749 if (options->kbd_interactive_authentication == -1)
750 options->kbd_interactive_authentication = 0;
737 if (options->rhosts_rsa_authentication == -1) 751 if (options->rhosts_rsa_authentication == -1)
738 options->rhosts_rsa_authentication = 1; 752 options->rhosts_rsa_authentication = 1;
739 if (options->fallback_to_rsh == -1) 753 if (options->fallback_to_rsh == -1)