summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index 1a7545171..f56cc1803 100644
--- a/servconf.c
+++ b/servconf.c
@@ -90,7 +90,9 @@ initialize_server_options(ServerOptions *options)
90 options->kerberos_ticket_cleanup = -1; 90 options->kerberos_ticket_cleanup = -1;
91 options->kerberos_get_afs_token = -1; 91 options->kerberos_get_afs_token = -1;
92 options->gss_authentication=-1; 92 options->gss_authentication=-1;
93 options->gss_keyex = -1;
93 options->gss_cleanup_creds = -1; 94 options->gss_cleanup_creds = -1;
95 options->gss_strict_acceptor = -1;
94 options->password_authentication = -1; 96 options->password_authentication = -1;
95 options->kbd_interactive_authentication = -1; 97 options->kbd_interactive_authentication = -1;
96 options->challenge_response_authentication = -1; 98 options->challenge_response_authentication = -1;
@@ -204,8 +206,12 @@ fill_default_server_options(ServerOptions *options)
204 options->kerberos_get_afs_token = 0; 206 options->kerberos_get_afs_token = 0;
205 if (options->gss_authentication == -1) 207 if (options->gss_authentication == -1)
206 options->gss_authentication = 0; 208 options->gss_authentication = 0;
209 if (options->gss_keyex == -1)
210 options->gss_keyex = 0;
207 if (options->gss_cleanup_creds == -1) 211 if (options->gss_cleanup_creds == -1)
208 options->gss_cleanup_creds = 1; 212 options->gss_cleanup_creds = 1;
213 if (options->gss_strict_acceptor == -1)
214 options->gss_strict_acceptor = 1;
209 if (options->password_authentication == -1) 215 if (options->password_authentication == -1)
210 options->password_authentication = 1; 216 options->password_authentication = 1;
211 if (options->kbd_interactive_authentication == -1) 217 if (options->kbd_interactive_authentication == -1)
@@ -290,7 +296,9 @@ typedef enum {
290 sBanner, sUseDNS, sHostbasedAuthentication, 296 sBanner, sUseDNS, sHostbasedAuthentication,
291 sHostbasedUsesNameFromPacketOnly, sClientAliveInterval, 297 sHostbasedUsesNameFromPacketOnly, sClientAliveInterval,
292 sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2, 298 sClientAliveCountMax, sAuthorizedKeysFile, sAuthorizedKeysFile2,
293 sGssAuthentication, sGssCleanupCreds, sAcceptEnv, sPermitTunnel, 299 sGssAuthentication, sGssCleanupCreds, sGssStrictAcceptor,
300 sGssKeyEx,
301 sAcceptEnv, sPermitTunnel,
294 sMatch, sPermitOpen, sForceCommand, 302 sMatch, sPermitOpen, sForceCommand,
295 sUsePrivilegeSeparation, 303 sUsePrivilegeSeparation,
296 sDeprecated, sUnsupported 304 sDeprecated, sUnsupported
@@ -351,9 +359,13 @@ static struct {
351#ifdef GSSAPI 359#ifdef GSSAPI
352 { "gssapiauthentication", sGssAuthentication, SSHCFG_ALL }, 360 { "gssapiauthentication", sGssAuthentication, SSHCFG_ALL },
353 { "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL }, 361 { "gssapicleanupcredentials", sGssCleanupCreds, SSHCFG_GLOBAL },
362 { "gssapistrictacceptorcheck", sGssStrictAcceptor, SSHCFG_GLOBAL },
363 { "gssapikeyexchange", sGssKeyEx, SSHCFG_GLOBAL },
354#else 364#else
355 { "gssapiauthentication", sUnsupported, SSHCFG_ALL }, 365 { "gssapiauthentication", sUnsupported, SSHCFG_ALL },
356 { "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL }, 366 { "gssapicleanupcredentials", sUnsupported, SSHCFG_GLOBAL },
367 { "gssapistrictacceptorcheck", sUnsupported, SSHCFG_GLOBAL },
368 { "gssapikeyexchange", sUnsupported, SSHCFG_GLOBAL },
357#endif 369#endif
358 { "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL }, 370 { "passwordauthentication", sPasswordAuthentication, SSHCFG_ALL },
359 { "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL }, 371 { "kbdinteractiveauthentication", sKbdInteractiveAuthentication, SSHCFG_ALL },
@@ -871,10 +883,18 @@ parse_flag:
871 intptr = &options->gss_authentication; 883 intptr = &options->gss_authentication;
872 goto parse_flag; 884 goto parse_flag;
873 885
886 case sGssKeyEx:
887 intptr = &options->gss_keyex;
888 goto parse_flag;
889
874 case sGssCleanupCreds: 890 case sGssCleanupCreds:
875 intptr = &options->gss_cleanup_creds; 891 intptr = &options->gss_cleanup_creds;
876 goto parse_flag; 892 goto parse_flag;
877 893
894 case sGssStrictAcceptor:
895 intptr = &options->gss_strict_acceptor;
896 goto parse_flag;
897
878 case sPasswordAuthentication: 898 case sPasswordAuthentication:
879 intptr = &options->password_authentication; 899 intptr = &options->password_authentication;
880 goto parse_flag; 900 goto parse_flag;