diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 922c57454..e0386935f 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.222 2014/10/24 02:01:20 lteo Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.223 2014/12/04 02:24:32 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -154,7 +154,7 @@ typedef enum { | |||
154 | oKexAlgorithms, oIPQoS, oRequestTTY, oIgnoreUnknown, oProxyUseFdpass, | 154 | oKexAlgorithms, oIPQoS, oRequestTTY, oIgnoreUnknown, oProxyUseFdpass, |
155 | oCanonicalDomains, oCanonicalizeHostname, oCanonicalizeMaxDots, | 155 | oCanonicalDomains, oCanonicalizeHostname, oCanonicalizeMaxDots, |
156 | oCanonicalizeFallbackLocal, oCanonicalizePermittedCNAMEs, | 156 | oCanonicalizeFallbackLocal, oCanonicalizePermittedCNAMEs, |
157 | oStreamLocalBindMask, oStreamLocalBindUnlink, | 157 | oStreamLocalBindMask, oStreamLocalBindUnlink, oRevokedHostKeys, |
158 | oIgnoredUnknownOption, oDeprecated, oUnsupported | 158 | oIgnoredUnknownOption, oDeprecated, oUnsupported |
159 | } OpCodes; | 159 | } OpCodes; |
160 | 160 | ||
@@ -269,6 +269,7 @@ static struct { | |||
269 | { "canonicalizepermittedcnames", oCanonicalizePermittedCNAMEs }, | 269 | { "canonicalizepermittedcnames", oCanonicalizePermittedCNAMEs }, |
270 | { "streamlocalbindmask", oStreamLocalBindMask }, | 270 | { "streamlocalbindmask", oStreamLocalBindMask }, |
271 | { "streamlocalbindunlink", oStreamLocalBindUnlink }, | 271 | { "streamlocalbindunlink", oStreamLocalBindUnlink }, |
272 | { "revokedhostkeys", oRevokedHostKeys }, | ||
272 | { "ignoreunknown", oIgnoreUnknown }, | 273 | { "ignoreunknown", oIgnoreUnknown }, |
273 | 274 | ||
274 | { NULL, oBadOption } | 275 | { NULL, oBadOption } |
@@ -1455,6 +1456,10 @@ parse_int: | |||
1455 | intptr = &options->fwd_opts.streamlocal_bind_unlink; | 1456 | intptr = &options->fwd_opts.streamlocal_bind_unlink; |
1456 | goto parse_flag; | 1457 | goto parse_flag; |
1457 | 1458 | ||
1459 | case oRevokedHostKeys: | ||
1460 | charptr = &options->revoked_host_keys; | ||
1461 | goto parse_string; | ||
1462 | |||
1458 | case oDeprecated: | 1463 | case oDeprecated: |
1459 | debug("%s line %d: Deprecated option \"%s\"", | 1464 | debug("%s line %d: Deprecated option \"%s\"", |
1460 | filename, linenum, keyword); | 1465 | filename, linenum, keyword); |
@@ -1631,6 +1636,7 @@ initialize_options(Options * options) | |||
1631 | options->canonicalize_max_dots = -1; | 1636 | options->canonicalize_max_dots = -1; |
1632 | options->canonicalize_fallback_local = -1; | 1637 | options->canonicalize_fallback_local = -1; |
1633 | options->canonicalize_hostname = -1; | 1638 | options->canonicalize_hostname = -1; |
1639 | options->revoked_host_keys = NULL; | ||
1634 | } | 1640 | } |
1635 | 1641 | ||
1636 | /* | 1642 | /* |
@@ -1818,6 +1824,7 @@ fill_default_options(Options * options) | |||
1818 | CLEAR_ON_NONE(options->local_command); | 1824 | CLEAR_ON_NONE(options->local_command); |
1819 | CLEAR_ON_NONE(options->proxy_command); | 1825 | CLEAR_ON_NONE(options->proxy_command); |
1820 | CLEAR_ON_NONE(options->control_path); | 1826 | CLEAR_ON_NONE(options->control_path); |
1827 | CLEAR_ON_NONE(options->revoked_host_keys); | ||
1821 | /* options->user will be set in the main program if appropriate */ | 1828 | /* options->user will be set in the main program if appropriate */ |
1822 | /* options->hostname will be set in the main program if appropriate */ | 1829 | /* options->hostname will be set in the main program if appropriate */ |
1823 | /* options->host_key_alias should not be set by default */ | 1830 | /* options->host_key_alias should not be set by default */ |
@@ -2251,6 +2258,7 @@ dump_client_config(Options *o, const char *host) | |||
2251 | dump_cfg_string(oPreferredAuthentications, o->preferred_authentications); | 2258 | dump_cfg_string(oPreferredAuthentications, o->preferred_authentications); |
2252 | dump_cfg_string(oProxyCommand, o->proxy_command); | 2259 | dump_cfg_string(oProxyCommand, o->proxy_command); |
2253 | dump_cfg_string(oXAuthLocation, o->xauth_location); | 2260 | dump_cfg_string(oXAuthLocation, o->xauth_location); |
2261 | dump_cfg_string(oRevokedHostKeys, o->revoked_host_keys); | ||
2254 | 2262 | ||
2255 | dump_cfg_forwards(oDynamicForward, o->num_local_forwards, o->local_forwards); | 2263 | dump_cfg_forwards(oDynamicForward, o->num_local_forwards, o->local_forwards); |
2256 | dump_cfg_forwards(oLocalForward, o->num_local_forwards, o->local_forwards); | 2264 | dump_cfg_forwards(oLocalForward, o->num_local_forwards, o->local_forwards); |