summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/readconf.c b/readconf.c
index 8bdc8caf1..9d1ee55fa 100644
--- a/readconf.c
+++ b/readconf.c
@@ -127,6 +127,7 @@ typedef enum {
127 oClearAllForwardings, oNoHostAuthenticationForLocalhost, 127 oClearAllForwardings, oNoHostAuthenticationForLocalhost,
128 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout, 128 oEnableSSHKeysign, oRekeyLimit, oVerifyHostKeyDNS, oConnectTimeout,
129 oAddressFamily, oGssAuthentication, oGssDelegateCreds, 129 oAddressFamily, oGssAuthentication, oGssDelegateCreds,
130 oGssTrustDns, oGssKeyEx, oGssClientIdentity, oGssRenewalRekey,
130 oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, 131 oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly,
131 oSendEnv, oControlPath, oControlMaster, oHashKnownHosts, 132 oSendEnv, oControlPath, oControlMaster, oHashKnownHosts,
132 oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, 133 oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand,
@@ -164,10 +165,18 @@ static struct {
164 { "afstokenpassing", oUnsupported }, 165 { "afstokenpassing", oUnsupported },
165#if defined(GSSAPI) 166#if defined(GSSAPI)
166 { "gssapiauthentication", oGssAuthentication }, 167 { "gssapiauthentication", oGssAuthentication },
168 { "gssapikeyexchange", oGssKeyEx },
167 { "gssapidelegatecredentials", oGssDelegateCreds }, 169 { "gssapidelegatecredentials", oGssDelegateCreds },
170 { "gssapitrustdns", oGssTrustDns },
171 { "gssapiclientidentity", oGssClientIdentity },
172 { "gssapirenewalforcesrekey", oGssRenewalRekey },
168#else 173#else
169 { "gssapiauthentication", oUnsupported }, 174 { "gssapiauthentication", oUnsupported },
175 { "gssapikeyexchange", oUnsupported },
170 { "gssapidelegatecredentials", oUnsupported }, 176 { "gssapidelegatecredentials", oUnsupported },
177 { "gssapitrustdns", oUnsupported },
178 { "gssapiclientidentity", oUnsupported },
179 { "gssapirenewalforcesrekey", oUnsupported },
171#endif 180#endif
172 { "fallbacktorsh", oDeprecated }, 181 { "fallbacktorsh", oDeprecated },
173 { "usersh", oDeprecated }, 182 { "usersh", oDeprecated },
@@ -456,10 +465,26 @@ parse_flag:
456 intptr = &options->gss_authentication; 465 intptr = &options->gss_authentication;
457 goto parse_flag; 466 goto parse_flag;
458 467
468 case oGssKeyEx:
469 intptr = &options->gss_keyex;
470 goto parse_flag;
471
459 case oGssDelegateCreds: 472 case oGssDelegateCreds:
460 intptr = &options->gss_deleg_creds; 473 intptr = &options->gss_deleg_creds;
461 goto parse_flag; 474 goto parse_flag;
462 475
476 case oGssTrustDns:
477 intptr = &options->gss_trust_dns;
478 goto parse_flag;
479
480 case oGssClientIdentity:
481 charptr = &options->gss_client_identity;
482 goto parse_string;
483
484 case oGssRenewalRekey:
485 intptr = &options->gss_renewal_rekey;
486 goto parse_flag;
487
463 case oBatchMode: 488 case oBatchMode:
464 intptr = &options->batch_mode; 489 intptr = &options->batch_mode;
465 goto parse_flag; 490 goto parse_flag;
@@ -1015,7 +1040,11 @@ initialize_options(Options * options)
1015 options->pubkey_authentication = -1; 1040 options->pubkey_authentication = -1;
1016 options->challenge_response_authentication = -1; 1041 options->challenge_response_authentication = -1;
1017 options->gss_authentication = -1; 1042 options->gss_authentication = -1;
1043 options->gss_keyex = -1;
1018 options->gss_deleg_creds = -1; 1044 options->gss_deleg_creds = -1;
1045 options->gss_trust_dns = -1;
1046 options->gss_renewal_rekey = -1;
1047 options->gss_client_identity = NULL;
1019 options->password_authentication = -1; 1048 options->password_authentication = -1;
1020 options->kbd_interactive_authentication = -1; 1049 options->kbd_interactive_authentication = -1;
1021 options->kbd_interactive_devices = NULL; 1050 options->kbd_interactive_devices = NULL;
@@ -1107,8 +1136,14 @@ fill_default_options(Options * options)
1107 options->challenge_response_authentication = 1; 1136 options->challenge_response_authentication = 1;
1108 if (options->gss_authentication == -1) 1137 if (options->gss_authentication == -1)
1109 options->gss_authentication = 0; 1138 options->gss_authentication = 0;
1139 if (options->gss_keyex == -1)
1140 options->gss_keyex = 0;
1110 if (options->gss_deleg_creds == -1) 1141 if (options->gss_deleg_creds == -1)
1111 options->gss_deleg_creds = 0; 1142 options->gss_deleg_creds = 0;
1143 if (options->gss_trust_dns == -1)
1144 options->gss_trust_dns = 0;
1145 if (options->gss_renewal_rekey == -1)
1146 options->gss_renewal_rekey = 0;
1112 if (options->password_authentication == -1) 1147 if (options->password_authentication == -1)
1113 options->password_authentication = 1; 1148 options->password_authentication = 1;
1114 if (options->kbd_interactive_authentication == -1) 1149 if (options->kbd_interactive_authentication == -1)