|
Lines 156-162
typedef enum {
Link Here
|
| 156 |
oCanonicalDomains, oCanonicalizeHostname, oCanonicalizeMaxDots, |
156 |
oCanonicalDomains, oCanonicalizeHostname, oCanonicalizeMaxDots, |
| 157 |
oCanonicalizeFallbackLocal, oCanonicalizePermittedCNAMEs, |
157 |
oCanonicalizeFallbackLocal, oCanonicalizePermittedCNAMEs, |
| 158 |
oStreamLocalBindMask, oStreamLocalBindUnlink, oRevokedHostKeys, |
158 |
oStreamLocalBindMask, oStreamLocalBindUnlink, oRevokedHostKeys, |
| 159 |
oFingerprintHash, |
159 |
oFingerprintHash, oHostbasedKeyTypes, |
| 160 |
oIgnoredUnknownOption, oDeprecated, oUnsupported |
160 |
oIgnoredUnknownOption, oDeprecated, oUnsupported |
| 161 |
} OpCodes; |
161 |
} OpCodes; |
| 162 |
|
162 |
|
|
Lines 273-278
static struct {
Link Here
|
| 273 |
{ "streamlocalbindunlink", oStreamLocalBindUnlink }, |
273 |
{ "streamlocalbindunlink", oStreamLocalBindUnlink }, |
| 274 |
{ "revokedhostkeys", oRevokedHostKeys }, |
274 |
{ "revokedhostkeys", oRevokedHostKeys }, |
| 275 |
{ "fingerprinthash", oFingerprintHash }, |
275 |
{ "fingerprinthash", oFingerprintHash }, |
|
|
276 |
{ "hostbasedkeytypes", oHostbasedKeyTypes }, |
| 276 |
{ "ignoreunknown", oIgnoreUnknown }, |
277 |
{ "ignoreunknown", oIgnoreUnknown }, |
| 277 |
|
278 |
|
| 278 |
{ NULL, oBadOption } |
279 |
{ NULL, oBadOption } |
|
Lines 1476-1481
parse_int:
Link Here
|
| 1476 |
*intptr = value; |
1477 |
*intptr = value; |
| 1477 |
break; |
1478 |
break; |
| 1478 |
|
1479 |
|
|
|
1480 |
case oHostbasedKeyTypes: |
| 1481 |
charptr = &options->hostbased_key_types; |
| 1482 |
|
| 1483 |
parse_keytypes: |
| 1484 |
arg = strdelim(&s); |
| 1485 |
if (!arg || *arg == '\0') |
| 1486 |
fatal("%.200s line %d: Missing argument.", |
| 1487 |
filename, linenum); |
| 1488 |
if (!sshkey_names_valid2(arg, 1)) |
| 1489 |
fatal("%s line %d: Bad key types '%s'.", |
| 1490 |
filename, linenum, arg ? arg : "<NONE>"); |
| 1491 |
if (*activep && *charptr == NULL) |
| 1492 |
*charptr = xstrdup(arg); |
| 1493 |
break; |
| 1494 |
|
| 1479 |
case oDeprecated: |
1495 |
case oDeprecated: |
| 1480 |
debug("%s line %d: Deprecated option \"%s\"", |
1496 |
debug("%s line %d: Deprecated option \"%s\"", |
| 1481 |
filename, linenum, keyword); |
1497 |
filename, linenum, keyword); |
|
Lines 1654-1659
initialize_options(Options * options)
Link Here
|
| 1654 |
options->canonicalize_hostname = -1; |
1670 |
options->canonicalize_hostname = -1; |
| 1655 |
options->revoked_host_keys = NULL; |
1671 |
options->revoked_host_keys = NULL; |
| 1656 |
options->fingerprint_hash = -1; |
1672 |
options->fingerprint_hash = -1; |
|
|
1673 |
options->hostbased_key_types = NULL; |
| 1657 |
} |
1674 |
} |
| 1658 |
|
1675 |
|
| 1659 |
/* |
1676 |
/* |
|
Lines 1833-1838
fill_default_options(Options * options)
Link Here
|
| 1833 |
options->canonicalize_hostname = SSH_CANONICALISE_NO; |
1850 |
options->canonicalize_hostname = SSH_CANONICALISE_NO; |
| 1834 |
if (options->fingerprint_hash == -1) |
1851 |
if (options->fingerprint_hash == -1) |
| 1835 |
options->fingerprint_hash = SSH_FP_HASH_DEFAULT; |
1852 |
options->fingerprint_hash = SSH_FP_HASH_DEFAULT; |
|
|
1853 |
if (options->hostbased_key_types == NULL) |
| 1854 |
options->hostbased_key_types = xstrdup("*"); |
| 1836 |
|
1855 |
|
| 1837 |
#define CLEAR_ON_NONE(v) \ |
1856 |
#define CLEAR_ON_NONE(v) \ |
| 1838 |
do { \ |
1857 |
do { \ |
|
Lines 2270-2275
dump_client_config(Options *o, const char *host)
Link Here
|
| 2270 |
dump_cfg_string(oBindAddress, o->bind_address); |
2289 |
dump_cfg_string(oBindAddress, o->bind_address); |
| 2271 |
dump_cfg_string(oCiphers, o->ciphers ? o->ciphers : KEX_CLIENT_ENCRYPT); |
2290 |
dump_cfg_string(oCiphers, o->ciphers ? o->ciphers : KEX_CLIENT_ENCRYPT); |
| 2272 |
dump_cfg_string(oControlPath, o->control_path); |
2291 |
dump_cfg_string(oControlPath, o->control_path); |
|
|
2292 |
dump_cfg_string(oHostbasedKeyTypes, o->hostbased_key_types); |
| 2273 |
dump_cfg_string(oHostKeyAlgorithms, o->hostkeyalgorithms ? o->hostkeyalgorithms : KEX_DEFAULT_PK_ALG); |
2293 |
dump_cfg_string(oHostKeyAlgorithms, o->hostkeyalgorithms ? o->hostkeyalgorithms : KEX_DEFAULT_PK_ALG); |
| 2274 |
dump_cfg_string(oHostKeyAlias, o->host_key_alias); |
2294 |
dump_cfg_string(oHostKeyAlias, o->host_key_alias); |
| 2275 |
dump_cfg_string(oKbdInteractiveDevices, o->kbd_interactive_devices); |
2295 |
dump_cfg_string(oKbdInteractiveDevices, o->kbd_interactive_devices); |