summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index b30c61f28..75005b3fe 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.76 2001/04/17 10:53:25 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.77 2001/04/30 11:18:51 markus Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -111,7 +111,7 @@ typedef enum {
111 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, 111 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication,
112 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, 112 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias,
113 oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, 113 oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication,
114 oHostKeyAlgorithms 114 oHostKeyAlgorithms, oBindAddress
115} OpCodes; 115} OpCodes;
116 116
117/* Textual representations of the tokens. */ 117/* Textual representations of the tokens. */
@@ -177,6 +177,7 @@ static struct {
177 { "dynamicforward", oDynamicForward }, 177 { "dynamicforward", oDynamicForward },
178 { "preferredauthentications", oPreferredAuthentications }, 178 { "preferredauthentications", oPreferredAuthentications },
179 { "hostkeyalgorithms", oHostKeyAlgorithms }, 179 { "hostkeyalgorithms", oHostKeyAlgorithms },
180 { "bindaddress", oBindAddress },
180 { NULL, 0 } 181 { NULL, 0 }
181}; 182};
182 183
@@ -459,6 +460,10 @@ parse_string:
459 charptr = &options->preferred_authentications; 460 charptr = &options->preferred_authentications;
460 goto parse_string; 461 goto parse_string;
461 462
463 case oBindAddress:
464 charptr = &options->bind_address;
465 goto parse_string;
466
462 case oProxyCommand: 467 case oProxyCommand:
463 charptr = &options->proxy_command; 468 charptr = &options->proxy_command;
464 string = xstrdup(""); 469 string = xstrdup("");
@@ -761,6 +766,7 @@ initialize_options(Options * options)
761 options->num_remote_forwards = 0; 766 options->num_remote_forwards = 0;
762 options->log_level = (LogLevel) - 1; 767 options->log_level = (LogLevel) - 1;
763 options->preferred_authentications = NULL; 768 options->preferred_authentications = NULL;
769 options->bind_address = NULL;
764} 770}
765 771
766/* 772/*