diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index d7011d7f7..2751db345 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -14,7 +14,7 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include "includes.h" | 16 | #include "includes.h" |
17 | RCSID("$Id: readconf.c,v 1.15 2000/05/30 03:44:53 damien Exp $"); | 17 | RCSID("$Id: readconf.c,v 1.16 2000/06/07 09:55:44 djm Exp $"); |
18 | 18 | ||
19 | #include "ssh.h" | 19 | #include "ssh.h" |
20 | #include "cipher.h" | 20 | #include "cipher.h" |
@@ -92,7 +92,7 @@ typedef enum { | |||
92 | oBadOption, | 92 | oBadOption, |
93 | oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, | 93 | oForwardAgent, oForwardX11, oGatewayPorts, oRhostsAuthentication, |
94 | oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh, | 94 | oPasswordAuthentication, oRSAAuthentication, oFallBackToRsh, oUseRsh, |
95 | oSkeyAuthentication, | 95 | oSkeyAuthentication, oXAuthLocation, |
96 | #ifdef KRB4 | 96 | #ifdef KRB4 |
97 | oKerberosAuthentication, | 97 | oKerberosAuthentication, |
98 | #endif /* KRB4 */ | 98 | #endif /* KRB4 */ |
@@ -116,6 +116,7 @@ static struct { | |||
116 | } keywords[] = { | 116 | } keywords[] = { |
117 | { "forwardagent", oForwardAgent }, | 117 | { "forwardagent", oForwardAgent }, |
118 | { "forwardx11", oForwardX11 }, | 118 | { "forwardx11", oForwardX11 }, |
119 | { "xauthlocation", oXAuthLocation }, | ||
119 | { "gatewayports", oGatewayPorts }, | 120 | { "gatewayports", oGatewayPorts }, |
120 | { "useprivilegedport", oUsePrivilegedPort }, | 121 | { "useprivilegedport", oUsePrivilegedPort }, |
121 | { "rhostsauthentication", oRhostsAuthentication }, | 122 | { "rhostsauthentication", oRhostsAuthentication }, |
@@ -396,6 +397,10 @@ parse_flag: | |||
396 | } | 397 | } |
397 | break; | 398 | break; |
398 | 399 | ||
400 | case oXAuthLocation: | ||
401 | charptr=&options->xauth_location; | ||
402 | goto parse_string; | ||
403 | |||
399 | case oUser: | 404 | case oUser: |
400 | charptr = &options->user; | 405 | charptr = &options->user; |
401 | parse_string: | 406 | parse_string: |
@@ -644,6 +649,7 @@ initialize_options(Options * options) | |||
644 | memset(options, 'X', sizeof(*options)); | 649 | memset(options, 'X', sizeof(*options)); |
645 | options->forward_agent = -1; | 650 | options->forward_agent = -1; |
646 | options->forward_x11 = -1; | 651 | options->forward_x11 = -1; |
652 | options->xauth_location = NULL; | ||
647 | options->gateway_ports = -1; | 653 | options->gateway_ports = -1; |
648 | options->use_privileged_port = -1; | 654 | options->use_privileged_port = -1; |
649 | options->rhosts_authentication = -1; | 655 | options->rhosts_authentication = -1; |
@@ -700,6 +706,10 @@ fill_default_options(Options * options) | |||
700 | options->forward_agent = 0; | 706 | options->forward_agent = 0; |
701 | if (options->forward_x11 == -1) | 707 | if (options->forward_x11 == -1) |
702 | options->forward_x11 = 0; | 708 | options->forward_x11 = 0; |
709 | #ifdef XAUTH_PATH | ||
710 | if (options->xauth_location == NULL) | ||
711 | options->xauth_location = XAUTH_PATH; | ||
712 | #endif /* XAUTH_PATH */ | ||
703 | if (options->gateway_ports == -1) | 713 | if (options->gateway_ports == -1) |
704 | options->gateway_ports = 0; | 714 | options->gateway_ports = 0; |
705 | if (options->use_privileged_port == -1) | 715 | if (options->use_privileged_port == -1) |