summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index dfd83c1b9..2b8ff58d6 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.127 2003/12/16 15:49:51 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.128 2004/03/05 10:53:58 markus Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -105,7 +105,7 @@ typedef enum {
105 oClearAllForwardings, oNoHostAuthenticationForLocalhost, 105 oClearAllForwardings, oNoHostAuthenticationForLocalhost,
106 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, 106 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout,
107 oAddressFamily, oGssAuthentication, oGssDelegateCreds, 107 oAddressFamily, oGssAuthentication, oGssDelegateCreds,
108 oServerAliveInterval, oServerAliveCountMax, 108 oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly,
109 oProtocolKeepAlives, oSetupTimeOut, 109 oProtocolKeepAlives, oSetupTimeOut,
110 oDeprecated, oUnsupported 110 oDeprecated, oUnsupported
111} OpCodes; 111} OpCodes;
@@ -148,6 +148,7 @@ static struct {
148 { "usersh", oDeprecated }, 148 { "usersh", oDeprecated },
149 { "identityfile", oIdentityFile }, 149 { "identityfile", oIdentityFile },
150 { "identityfile2", oIdentityFile }, /* alias */ 150 { "identityfile2", oIdentityFile }, /* alias */
151 { "identitiesonly", oIdentitiesOnly },
151 { "hostname", oHostName }, 152 { "hostname", oHostName },
152 { "hostkeyalias", oHostKeyAlias }, 153 { "hostkeyalias", oHostKeyAlias },
153 { "proxycommand", oProxyCommand }, 154 { "proxycommand", oProxyCommand },
@@ -739,6 +740,10 @@ parse_int:
739 intptr = &options->enable_ssh_keysign; 740 intptr = &options->enable_ssh_keysign;
740 goto parse_flag; 741 goto parse_flag;
741 742
743 case oIdentitiesOnly:
744 intptr = &options->identities_only;
745 goto parse_flag;
746
742 case oServerAliveInterval: 747 case oServerAliveInterval:
743 case oProtocolKeepAlives: /* Debian-specific compatibility alias */ 748 case oProtocolKeepAlives: /* Debian-specific compatibility alias */
744 intptr = &options->server_alive_interval; 749 intptr = &options->server_alive_interval;
@@ -878,6 +883,7 @@ initialize_options(Options * options)
878 options->smartcard_device = NULL; 883 options->smartcard_device = NULL;
879 options->enable_ssh_keysign = - 1; 884 options->enable_ssh_keysign = - 1;
880 options->no_host_authentication_for_localhost = - 1; 885 options->no_host_authentication_for_localhost = - 1;
886 options->identities_only = - 1;
881 options->rekey_limit = - 1; 887 options->rekey_limit = - 1;
882 options->verify_host_key_dns = -1; 888 options->verify_host_key_dns = -1;
883 options->server_alive_interval = -1; 889 options->server_alive_interval = -1;
@@ -990,6 +996,8 @@ fill_default_options(Options * options)
990 clear_forwardings(options); 996 clear_forwardings(options);
991 if (options->no_host_authentication_for_localhost == - 1) 997 if (options->no_host_authentication_for_localhost == - 1)
992 options->no_host_authentication_for_localhost = 0; 998 options->no_host_authentication_for_localhost = 0;
999 if (options->identities_only == -1)
1000 options->identities_only = 0;
993 if (options->enable_ssh_keysign == -1) 1001 if (options->enable_ssh_keysign == -1)
994 options->enable_ssh_keysign = 0; 1002 options->enable_ssh_keysign = 0;
995 if (options->rekey_limit == -1) 1003 if (options->rekey_limit == -1)