diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 6519ec667..a4ae73333 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.84 2001/07/25 14:35:18 markus Exp $"); | 15 | RCSID("$OpenBSD: readconf.c,v 1.85 2001/07/31 09:28:44 jakob Exp $"); |
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "xmalloc.h" | 18 | #include "xmalloc.h" |
@@ -114,7 +114,7 @@ typedef enum { | |||
114 | oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, | 114 | oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, |
115 | oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, | 115 | oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, |
116 | oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, | 116 | oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, |
117 | oHostKeyAlgorithms, oBindAddress | 117 | oHostKeyAlgorithms, oBindAddress, oSmartcardDevice |
118 | } OpCodes; | 118 | } OpCodes; |
119 | 119 | ||
120 | /* Textual representations of the tokens. */ | 120 | /* Textual representations of the tokens. */ |
@@ -183,6 +183,7 @@ static struct { | |||
183 | { "preferredauthentications", oPreferredAuthentications }, | 183 | { "preferredauthentications", oPreferredAuthentications }, |
184 | { "hostkeyalgorithms", oHostKeyAlgorithms }, | 184 | { "hostkeyalgorithms", oHostKeyAlgorithms }, |
185 | { "bindaddress", oBindAddress }, | 185 | { "bindaddress", oBindAddress }, |
186 | { "smartcarddevice", oSmartcardDevice }, | ||
186 | { NULL, 0 } | 187 | { NULL, 0 } |
187 | }; | 188 | }; |
188 | 189 | ||
@@ -468,6 +469,10 @@ parse_string: | |||
468 | charptr = &options->bind_address; | 469 | charptr = &options->bind_address; |
469 | goto parse_string; | 470 | goto parse_string; |
470 | 471 | ||
472 | case oSmartcardDevice: | ||
473 | intptr = &options->smartcard_device; | ||
474 | goto parse_int; | ||
475 | |||
471 | case oProxyCommand: | 476 | case oProxyCommand: |
472 | charptr = &options->proxy_command; | 477 | charptr = &options->proxy_command; |
473 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { | 478 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { |
@@ -772,6 +777,7 @@ initialize_options(Options * options) | |||
772 | options->log_level = (LogLevel) - 1; | 777 | options->log_level = (LogLevel) - 1; |
773 | options->preferred_authentications = NULL; | 778 | options->preferred_authentications = NULL; |
774 | options->bind_address = NULL; | 779 | options->bind_address = NULL; |
780 | options->smartcard_device = -1; | ||
775 | } | 781 | } |
776 | 782 | ||
777 | /* | 783 | /* |