diff options
author | Damien Miller <djm@mindrot.org> | 2013-10-17 11:48:13 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-10-17 11:48:13 +1100 |
commit | 3850559be93f1a442ae9ed370e8c389889dd5f72 (patch) | |
tree | 82dd3228fdd4140ad1d563275d6e2dbbda291c8d /readconf.c | |
parent | 607af3434b75acc7199a5d99d5a9c11068c01f27 (diff) |
- djm@cvs.openbsd.org 2013/10/16 22:49:39
[readconf.c readconf.h ssh.1 ssh.c ssh_config.5]
s/canonicalise/canonicalize/ for consistency with existing spelling,
e.g. authorized_keys; pointed out by naddy@
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/readconf.c b/readconf.c index de8eb7cd3..fb77fa9dc 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.208 2013/10/16 02:31:45 djm Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.209 2013/10/16 22:49:38 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 |
@@ -144,8 +144,8 @@ typedef enum { | |||
144 | oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, | 144 | oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, |
145 | oVisualHostKey, oUseRoaming, oZeroKnowledgePasswordAuthentication, | 145 | oVisualHostKey, oUseRoaming, oZeroKnowledgePasswordAuthentication, |
146 | oKexAlgorithms, oIPQoS, oRequestTTY, oIgnoreUnknown, oProxyUseFdpass, | 146 | oKexAlgorithms, oIPQoS, oRequestTTY, oIgnoreUnknown, oProxyUseFdpass, |
147 | oCanonicalDomains, oCanonicaliseHostname, oCanonicaliseMaxDots, | 147 | oCanonicalDomains, oCanonicalizeHostname, oCanonicalizeMaxDots, |
148 | oCanonicaliseFallbackLocal, oCanonicalisePermittedCNAMEs, | 148 | oCanonicalizeFallbackLocal, oCanonicalizePermittedCNAMEs, |
149 | oIgnoredUnknownOption, oDeprecated, oUnsupported | 149 | oIgnoredUnknownOption, oDeprecated, oUnsupported |
150 | } OpCodes; | 150 | } OpCodes; |
151 | 151 | ||
@@ -260,10 +260,10 @@ static struct { | |||
260 | { "requesttty", oRequestTTY }, | 260 | { "requesttty", oRequestTTY }, |
261 | { "proxyusefdpass", oProxyUseFdpass }, | 261 | { "proxyusefdpass", oProxyUseFdpass }, |
262 | { "canonicaldomains", oCanonicalDomains }, | 262 | { "canonicaldomains", oCanonicalDomains }, |
263 | { "canonicalisefallbacklocal", oCanonicaliseFallbackLocal }, | 263 | { "canonicalizefallbacklocal", oCanonicalizeFallbackLocal }, |
264 | { "canonicalisehostname", oCanonicaliseHostname }, | 264 | { "canonicalizehostname", oCanonicalizeHostname }, |
265 | { "canonicalisemaxdots", oCanonicaliseMaxDots }, | 265 | { "canonicalizemaxdots", oCanonicalizeMaxDots }, |
266 | { "canonicalisepermittedcnames", oCanonicalisePermittedCNAMEs }, | 266 | { "canonicalizepermittedcnames", oCanonicalizePermittedCNAMEs }, |
267 | { "ignoreunknown", oIgnoreUnknown }, | 267 | { "ignoreunknown", oIgnoreUnknown }, |
268 | 268 | ||
269 | { NULL, oBadOption } | 269 | { NULL, oBadOption } |
@@ -644,7 +644,7 @@ static const struct multistate multistate_requesttty[] = { | |||
644 | { "auto", REQUEST_TTY_AUTO }, | 644 | { "auto", REQUEST_TTY_AUTO }, |
645 | { NULL, -1 } | 645 | { NULL, -1 } |
646 | }; | 646 | }; |
647 | static const struct multistate multistate_canonicalisehostname[] = { | 647 | static const struct multistate multistate_canonicalizehostname[] = { |
648 | { "true", SSH_CANONICALISE_YES }, | 648 | { "true", SSH_CANONICALISE_YES }, |
649 | { "false", SSH_CANONICALISE_NO }, | 649 | { "false", SSH_CANONICALISE_NO }, |
650 | { "yes", SSH_CANONICALISE_YES }, | 650 | { "yes", SSH_CANONICALISE_YES }, |
@@ -1321,7 +1321,7 @@ parse_int: | |||
1321 | } | 1321 | } |
1322 | break; | 1322 | break; |
1323 | 1323 | ||
1324 | case oCanonicalisePermittedCNAMEs: | 1324 | case oCanonicalizePermittedCNAMEs: |
1325 | value = options->num_permitted_cnames != 0; | 1325 | value = options->num_permitted_cnames != 0; |
1326 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { | 1326 | while ((arg = strdelim(&s)) != NULL && *arg != '\0') { |
1327 | /* Either '*' for everything or 'list:list' */ | 1327 | /* Either '*' for everything or 'list:list' */ |
@@ -1350,17 +1350,17 @@ parse_int: | |||
1350 | } | 1350 | } |
1351 | break; | 1351 | break; |
1352 | 1352 | ||
1353 | case oCanonicaliseHostname: | 1353 | case oCanonicalizeHostname: |
1354 | intptr = &options->canonicalise_hostname; | 1354 | intptr = &options->canonicalize_hostname; |
1355 | multistate_ptr = multistate_canonicalisehostname; | 1355 | multistate_ptr = multistate_canonicalizehostname; |
1356 | goto parse_multistate; | 1356 | goto parse_multistate; |
1357 | 1357 | ||
1358 | case oCanonicaliseMaxDots: | 1358 | case oCanonicalizeMaxDots: |
1359 | intptr = &options->canonicalise_max_dots; | 1359 | intptr = &options->canonicalize_max_dots; |
1360 | goto parse_int; | 1360 | goto parse_int; |
1361 | 1361 | ||
1362 | case oCanonicaliseFallbackLocal: | 1362 | case oCanonicalizeFallbackLocal: |
1363 | intptr = &options->canonicalise_fallback_local; | 1363 | intptr = &options->canonicalize_fallback_local; |
1364 | goto parse_flag; | 1364 | goto parse_flag; |
1365 | 1365 | ||
1366 | case oDeprecated: | 1366 | case oDeprecated: |
@@ -1528,9 +1528,9 @@ initialize_options(Options * options) | |||
1528 | options->ignored_unknown = NULL; | 1528 | options->ignored_unknown = NULL; |
1529 | options->num_canonical_domains = 0; | 1529 | options->num_canonical_domains = 0; |
1530 | options->num_permitted_cnames = 0; | 1530 | options->num_permitted_cnames = 0; |
1531 | options->canonicalise_max_dots = -1; | 1531 | options->canonicalize_max_dots = -1; |
1532 | options->canonicalise_fallback_local = -1; | 1532 | options->canonicalize_fallback_local = -1; |
1533 | options->canonicalise_hostname = -1; | 1533 | options->canonicalize_hostname = -1; |
1534 | } | 1534 | } |
1535 | 1535 | ||
1536 | /* | 1536 | /* |
@@ -1684,12 +1684,12 @@ fill_default_options(Options * options) | |||
1684 | options->request_tty = REQUEST_TTY_AUTO; | 1684 | options->request_tty = REQUEST_TTY_AUTO; |
1685 | if (options->proxy_use_fdpass == -1) | 1685 | if (options->proxy_use_fdpass == -1) |
1686 | options->proxy_use_fdpass = 0; | 1686 | options->proxy_use_fdpass = 0; |
1687 | if (options->canonicalise_max_dots == -1) | 1687 | if (options->canonicalize_max_dots == -1) |
1688 | options->canonicalise_max_dots = 1; | 1688 | options->canonicalize_max_dots = 1; |
1689 | if (options->canonicalise_fallback_local == -1) | 1689 | if (options->canonicalize_fallback_local == -1) |
1690 | options->canonicalise_fallback_local = 1; | 1690 | options->canonicalize_fallback_local = 1; |
1691 | if (options->canonicalise_hostname == -1) | 1691 | if (options->canonicalize_hostname == -1) |
1692 | options->canonicalise_hostname = SSH_CANONICALISE_NO; | 1692 | options->canonicalize_hostname = SSH_CANONICALISE_NO; |
1693 | #define CLEAR_ON_NONE(v) \ | 1693 | #define CLEAR_ON_NONE(v) \ |
1694 | do { \ | 1694 | do { \ |
1695 | if (v != NULL && strcasecmp(v, "none") == 0) { \ | 1695 | if (v != NULL && strcasecmp(v, "none") == 0) { \ |