|
Lines 158-164
typedef enum {
Link Here
|
| 158 |
oPubkeyAuthentication, |
158 |
oPubkeyAuthentication, |
| 159 |
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, |
159 |
oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, |
| 160 |
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, |
160 |
oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, |
| 161 |
oHostKeyAlgorithms, oBindAddress, oBindInterface, oPKCS11Provider, |
161 |
oHostKeyAlgorithms, oHostKeyAlgorithmsOrder, oBindAddress, |
|
|
162 |
oBindInterface, oPKCS11Provider, |
| 162 |
oClearAllForwardings, oNoHostAuthenticationForLocalhost, |
163 |
oClearAllForwardings, oNoHostAuthenticationForLocalhost, |
| 163 |
oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, |
164 |
oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, |
| 164 |
oAddressFamily, oGssAuthentication, oGssDelegateCreds, |
165 |
oAddressFamily, oGssAuthentication, oGssDelegateCreds, |
|
Lines 280-285
static struct {
Link Here
|
| 280 |
{ "dynamicforward", oDynamicForward }, |
281 |
{ "dynamicforward", oDynamicForward }, |
| 281 |
{ "preferredauthentications", oPreferredAuthentications }, |
282 |
{ "preferredauthentications", oPreferredAuthentications }, |
| 282 |
{ "hostkeyalgorithms", oHostKeyAlgorithms }, |
283 |
{ "hostkeyalgorithms", oHostKeyAlgorithms }, |
|
|
284 |
{ "hostkeyalgorithmsorder", oHostKeyAlgorithmsOrder }, |
| 283 |
{ "casignaturealgorithms", oCASignatureAlgorithms }, |
285 |
{ "casignaturealgorithms", oCASignatureAlgorithms }, |
| 284 |
{ "bindaddress", oBindAddress }, |
286 |
{ "bindaddress", oBindAddress }, |
| 285 |
{ "bindinterface", oBindInterface }, |
287 |
{ "bindinterface", oBindInterface }, |
|
Lines 1262-1267
parse_int:
Link Here
|
| 1262 |
options->kex_algorithms = xstrdup(arg); |
1264 |
options->kex_algorithms = xstrdup(arg); |
| 1263 |
break; |
1265 |
break; |
| 1264 |
|
1266 |
|
|
|
1267 |
case oHostKeyAlgorithmsOrder: |
| 1268 |
intptr = &options->hostkeyalgorithms_order; |
| 1269 |
goto parse_flag; |
| 1270 |
|
| 1265 |
case oHostKeyAlgorithms: |
1271 |
case oHostKeyAlgorithms: |
| 1266 |
charptr = &options->hostkeyalgorithms; |
1272 |
charptr = &options->hostkeyalgorithms; |
| 1267 |
parse_keytypes: |
1273 |
parse_keytypes: |
|
Lines 1913-1918
initialize_options(Options * options)
Link Here
|
| 1913 |
options->macs = NULL; |
1919 |
options->macs = NULL; |
| 1914 |
options->kex_algorithms = NULL; |
1920 |
options->kex_algorithms = NULL; |
| 1915 |
options->hostkeyalgorithms = NULL; |
1921 |
options->hostkeyalgorithms = NULL; |
|
|
1922 |
options->hostkeyalgorithms_order = -1; |
| 1916 |
options->ca_sign_algorithms = NULL; |
1923 |
options->ca_sign_algorithms = NULL; |
| 1917 |
options->num_identity_files = 0; |
1924 |
options->num_identity_files = 0; |
| 1918 |
options->num_certificate_files = 0; |
1925 |
options->num_certificate_files = 0; |
|
Lines 2077-2082
fill_default_options(Options * options)
Link Here
|
| 2077 |
if (options->number_of_password_prompts == -1) |
2084 |
if (options->number_of_password_prompts == -1) |
| 2078 |
options->number_of_password_prompts = 3; |
2085 |
options->number_of_password_prompts = 3; |
| 2079 |
/* options->hostkeyalgorithms, default set in myproposals.h */ |
2086 |
/* options->hostkeyalgorithms, default set in myproposals.h */ |
|
|
2087 |
if (options->hostkeyalgorithms_order == -1) |
| 2088 |
options->hostkeyalgorithms_order = 0; |
| 2080 |
if (options->add_keys_to_agent == -1) |
2089 |
if (options->add_keys_to_agent == -1) |
| 2081 |
options->add_keys_to_agent = 0; |
2090 |
options->add_keys_to_agent = 0; |
| 2082 |
if (options->num_identity_files == 0) { |
2091 |
if (options->num_identity_files == 0) { |
|
Lines 2669-2674
dump_client_config(Options *o, const char *host)
Link Here
|
| 2669 |
#endif /* GSSAPI */ |
2678 |
#endif /* GSSAPI */ |
| 2670 |
dump_cfg_fmtint(oHashKnownHosts, o->hash_known_hosts); |
2679 |
dump_cfg_fmtint(oHashKnownHosts, o->hash_known_hosts); |
| 2671 |
dump_cfg_fmtint(oHostbasedAuthentication, o->hostbased_authentication); |
2680 |
dump_cfg_fmtint(oHostbasedAuthentication, o->hostbased_authentication); |
|
|
2681 |
dump_cfg_fmtint(oHostKeyAlgorithmsOrder, o->hostkeyalgorithms_order); |
| 2672 |
dump_cfg_fmtint(oIdentitiesOnly, o->identities_only); |
2682 |
dump_cfg_fmtint(oIdentitiesOnly, o->identities_only); |
| 2673 |
dump_cfg_fmtint(oKbdInteractiveAuthentication, o->kbd_interactive_authentication); |
2683 |
dump_cfg_fmtint(oKbdInteractiveAuthentication, o->kbd_interactive_authentication); |
| 2674 |
dump_cfg_fmtint(oNoHostAuthenticationForLocalhost, o->no_host_authentication_for_localhost); |
2684 |
dump_cfg_fmtint(oNoHostAuthenticationForLocalhost, o->no_host_authentication_for_localhost); |