summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index 6f5ac8ca6..d90ba37bb 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.51 2000/12/19 23:17:57 markus Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.52 2000/12/27 12:30:19 markus Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "readconf.h" 18#include "readconf.h"
@@ -103,7 +103,7 @@ typedef enum {
103 oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication, 103 oCompressionLevel, oKeepAlives, oNumberOfPasswordPrompts, oTISAuthentication,
104 oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol, 104 oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol,
105 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, 105 oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication,
106 oKbdInteractiveAuthentication, oKbdInteractiveDevices 106 oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias
107} OpCodes; 107} OpCodes;
108 108
109/* Textual representations of the tokens. */ 109/* Textual representations of the tokens. */
@@ -137,6 +137,7 @@ static struct {
137 { "identityfile", oIdentityFile }, 137 { "identityfile", oIdentityFile },
138 { "identityfile2", oIdentityFile }, /* alias */ 138 { "identityfile2", oIdentityFile }, /* alias */
139 { "hostname", oHostName }, 139 { "hostname", oHostName },
140 { "hostkeyalias", oHostKeyAlias },
140 { "proxycommand", oProxyCommand }, 141 { "proxycommand", oProxyCommand },
141 { "port", oPort }, 142 { "port", oPort },
142 { "cipher", oCipher }, 143 { "cipher", oCipher },
@@ -435,6 +436,10 @@ parse_string:
435 charptr = &options->hostname; 436 charptr = &options->hostname;
436 goto parse_string; 437 goto parse_string;
437 438
439 case oHostKeyAlias:
440 charptr = &options->host_key_alias;
441 goto parse_string;
442
438 case oProxyCommand: 443 case oProxyCommand:
439 charptr = &options->proxy_command; 444 charptr = &options->proxy_command;
440 string = xstrdup(""); 445 string = xstrdup("");
@@ -689,6 +694,7 @@ initialize_options(Options * options)
689 options->protocol = SSH_PROTO_UNKNOWN; 694 options->protocol = SSH_PROTO_UNKNOWN;
690 options->num_identity_files = 0; 695 options->num_identity_files = 0;
691 options->hostname = NULL; 696 options->hostname = NULL;
697 options->host_key_alias = NULL;
692 options->proxy_command = NULL; 698 options->proxy_command = NULL;
693 options->user = NULL; 699 options->user = NULL;
694 options->escape_char = -1; 700 options->escape_char = -1;
@@ -802,4 +808,5 @@ fill_default_options(Options * options)
802 /* options->proxy_command should not be set by default */ 808 /* options->proxy_command should not be set by default */
803 /* options->user will be set in the main program if appropriate */ 809 /* options->user will be set in the main program if appropriate */
804 /* options->hostname will be set in the main program if appropriate */ 810 /* options->hostname will be set in the main program if appropriate */
811 /* options->host_key_alias should not be set by default */
805} 812}